Hello,
I just started playing with the latest litecoin code for personal education. Got the genesis block created and am now trying to establish a testnet connection between my vps and my home machine.
vps IP: x.x.x.x
home IP: y.y.y.y
Testnet port: 19700
From what I read I should do...
on vps: ./foocoind -testnet -connect=y.y.y.y
on home: ./foocoind -testnet -connect=x.x.x.x
I already forwarded the ports on my router to the home machine, so this should be no problem. However, I never geht both machines connected. Here are the conf files I tried (~/.foocoin/foocoin.conf):
rpcuser=test
rpcpassword=test1
Result (debug.log):
on vps:
2014-05-25 12:47:45 trying connection y.y.y.y lastseen=0.0hrs
2014-05-25 12:47:45 connect() failed after select(): Connection refused
on home:
2014-05-25 12:48:21 trying connection x.x.x.x lastseen=0.0hrs
2014-05-25 12:48:26 connection timeout
Other config:
rpcuser=test
rpcpassword=test1
testnet=1
Result: same as above
Other config:
rpcuser=test
rpcpassword=test1
testnet=1
testnet_config=1
Result: same as above
This is the output of "netstat -anet | grep 19700":
vps:
tcp 0 0 127.0.0.1:19700 0.0.0.0:* LISTEN 1000 44434377
tcp 0 1 x.x.x.x:38424 y.y.y.y:19700 SYN_SENT 1000 44434729
tcp6 0 0 ::1:19700 :::* LISTEN 1000 44434375
home (192.168.1.107 is my local ip which is the port forwarded to):
tcp 0 0 127.0.0.1:19700 0.0.0.0:* LISTEN 1000 4104309
tcp 0 1 192.168.1.107:34093 x.x.x.x:19700 SYN_SENT 1000 4105400
tcp6 0 0 ::1:19700 :::* LISTEN 1000 4104308
If I put "listen=1" to any of the machines config file I always get:
Error: An error occurred while setting up the RPC port 19700 for listening on IPv4: bind: Address already in use
Any ideas what else I can try?
Regards, haggis