Author Topic: Local area network (LAN) 41677  (Read 123 times)

syrus

  • Newbie
  • *
  • Posts: 3
    • View Profile
Local area network (LAN) 41677
« on: August 27, 2017, 11:04:00 am »
miningprivkey = 7QQNKV9JcwBTdxipDEWC**************************
rpcuser = rpcuser
rpcpassword = rpcpass
rpcconnect = 127.0.0.1
rpcallowip = 0.0.0.0/0
rpcallowip = 127.0.0.1
rpcport = 41677
port = 41678
server = 1
daemon = 1
listen = 1
gen = 0
addnode = 5.35.253.206
addnode = 94.23.23.194
addnode = 52.17.253.8
addnode = 37.59.18.108

Firewall is turned off 


telnet 192.168.0.100  41677

HTTP/1.1 403 Forbidden
Date: Sat, 26 Aug 2017 09:25:00 +0000
Connection: close
Content-Length: 0
Content-Type: application/json
Server: spreadcoin-json-rpc/v0.9.16.1-gdba4d2b-beta

Lost connection to the master.


How do I solve?

georgem

  • Tech Admin
  • ******
  • Posts: 917
    • View Profile
Re: Local area network (LAN) 41677
« Reply #1 on: August 28, 2017, 10:13:38 am »
You are mixing up quite a few things and limiting your rpc port to only allow localhost connections:

rpcconnect = 127.0.0.1
rpcallowip = 0.0.0.0/0
rpcallowip = 127.0.0.1

just delete all of this, and leave only rpcallowip = 127.0.0.1 if you want to allow only connections from the same computer.

Put something like rpcallowip = 192.168.178.* if you want to allow only connections within your local network.

NEVER open up rpc port to the outside world, hackers might find ways to possibly even empty your wallet if you are not careful.