Bitcoin Forum
June 29, 2024, 06:51:17 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Can't set up a connection between nodes when clonning altcoin PLEASE HELP  (Read 1180 times)
logictense (OP)
Hero Member
*****
Offline Offline

Activity: 2147
Merit: 518


View Profile WWW
October 03, 2014, 05:08:23 PM
 #1

Hello,

in attempt to clone a coin from source i have spent almost three days trying to connect nodes to newly compiled daemon and got a connection issue. Since my digitalocean subscription has expired, i can only use my current physical rigs connected through router tp-link R860. That i have only one public IP i have set a VPN connection on my second rig. On the first rig which uses my default IP, i have forwarded both RPC and P2P ports.
Now doing the  following to connect to my second machine:
Code:
./MyCoind -connect=X.X.X.X &
backward connecting second machine to the first:
Code:
./MyCoind -connect=Y.Y.Y.Y &
doing getinfo and seeing no available connections listed.
Both debug.log's say
on first rig:
Code:
trying connection  Y.Y.Y.Y lastseen=0.0hrs
connection timeout
on second rig:
Code:
trying connection X.X.X.X lastseen=0.0hrs
connection timeout

mycoin.conf:
Code:
rpcuser=my_user_id
rpcpassword=my_password_id
rpcallowip=127.0.0.1
rpcport=59124
port=59125
rpcthreads=10
server=1
addnode=X.X.X.X
addnode=Y.Y.Y.Y

Nodes are not seen each other. Is it even possible to get nodes running through one router or should i necessary get a remote server with distinct static IP? I haven't seen this issue when set a node using digitalocean droplet. Please help.



Willisius
Sr. Member
****
Offline Offline

Activity: 364
Merit: 250

I'm really quite sane!


View Profile
October 03, 2014, 05:51:13 PM
 #2

Try this: Remove the addnodes from your .conf file. Have both machines running the daemon, without any "connect" or "addnode" directives.
Then, on one machine, tell it
Code:
./MyCoind connect X.X.X.X
Where "X.X.X.X" is the IP of the other machine.
logictense (OP)
Hero Member
*****
Offline Offline

Activity: 2147
Merit: 518


View Profile WWW
October 03, 2014, 06:54:44 PM
 #3

Try this: Remove the addnodes from your .conf file. Have both machines running the daemon, without any "connect" or "addnode" directives.
Then, on one machine, tell it
Code:
./MyCoind connect X.X.X.X
Where "X.X.X.X" is the IP of the other machine.
Removed additional nodes from .conf, run daemon on the first PC and connected to the first PC's IP address through the second PC. Got the same issue and "connection timeouts". I have my seednodes hardcoded in net.cpp:
Code:
line 1141 static const char *strDNSSeed[][2] = {{"X.X.X.X", "Y.Y.Y.Y"},}; //seednodes for mainnet
which are IP's of my two PC's.
P2P port is forwarded through a router only on the first PC with default IP. Second PC is behind proxy (VPN http://www.securitykiss.com) so that i can't forward any ports on that side. I am not sure, but maybe the problem is that i should have P2P port forwarded on BOTH PC's?



logictense (OP)
Hero Member
*****
Offline Offline

Activity: 2147
Merit: 518


View Profile WWW
October 03, 2014, 07:16:59 PM
 #4

P2P port on second PC is closed or forwarded but not used (service not seen). Can anyone give me a heads up how to open a port if sitting behind a proxy?

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!