Bitcoin Forum
May 04, 2024, 09:47:05 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Two Full Nodes, Same Router  (Read 1821 times)
plogank (OP)
Full Member
***
Offline Offline

Activity: 126
Merit: 100



View Profile
September 22, 2015, 12:56:27 AM
 #1

It appears that in order to run a full node port 8333 must be forwarded to that computer.  However, I have two computer on the same router and I would like to run two full nodes. My router won't allow me to forward 8333 to the second computer. What must I do to get that second node up?

I'm running Bitcoin Core version v0.11.0 (64-bit).

Thanks.

If you like this post a donation would be nice....  1PhCzA9o1jcwHr7PR4mxea8nJYUJWpKAGb

Besides, It'll drive me crazy trying to figure where it came from.
1714859225
Hero Member
*
Offline Offline

Posts: 1714859225

View Profile Personal Message (Offline)

Ignore
1714859225
Reply with quote  #2

1714859225
Report to moderator
1714859225
Hero Member
*
Offline Offline

Posts: 1714859225

View Profile Personal Message (Offline)

Ignore
1714859225
Reply with quote  #2

1714859225
Report to moderator
1714859225
Hero Member
*
Offline Offline

Posts: 1714859225

View Profile Personal Message (Offline)

Ignore
1714859225
Reply with quote  #2

1714859225
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714859225
Hero Member
*
Offline Offline

Posts: 1714859225

View Profile Personal Message (Offline)

Ignore
1714859225
Reply with quote  #2

1714859225
Report to moderator
1714859225
Hero Member
*
Offline Offline

Posts: 1714859225

View Profile Personal Message (Offline)

Ignore
1714859225
Reply with quote  #2

1714859225
Report to moderator
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3388
Merit: 6581


Just writing some code


View Profile WWW
September 22, 2015, 01:20:02 AM
 #2

It appears that in order to run a full node port 8333 must be forwarded to that computer.  However, I have two computer on the same router and I would like to run two full nodes. My router won't allow me to forward 8333 to the second computer. What must I do to get that second node up?

I'm running Bitcoin Core version v0.11.0 (64-bit).

Thanks.

Run it with a different port. You can either set your node to use a different port in the bitcoin.conf file and have the router forward that new port or you can keep the same 8333 port on that computer and set up your router to forward a different port number on the router to port 8333 on the computer.

gmaxwell
Moderator
Legendary
*
expert
Offline Offline

Activity: 4158
Merit: 8382



View Profile WWW
September 22, 2015, 01:20:49 AM
 #3

It appears that in order to run a full node port 8333 must be forwarded to that computer.
Not so.

Wouldn't it be nice if all problems were this easily solved. Smiley
TierNolan
Legendary
*
Offline Offline

Activity: 1232
Merit: 1083


View Profile
September 22, 2015, 09:02:04 AM
 #4

.... or you can keep the same 8333 port on that computer and set up your router to forward a different port number on the router to port 8333 on the computer.

I am not sure that would work.  A full node broadcasts the port it uses, so the node needs to know its global internet port.  Having the router remap the port will mean that nobody will be able to connect to the 2nd node, since it will claim to use port 8333.

1LxbG5cKXzTwZg9mjL3gaRE835uNQEteWF
spin
Sr. Member
****
Offline Offline

Activity: 362
Merit: 261


View Profile
September 22, 2015, 09:58:00 AM
Last edit: September 22, 2015, 11:08:28 AM by spin
 #5

If you want both available to the internet:
Why not change the default port configured in bitcoin.conf on the second node to something else.  Say 9333.  Then on your router fw 8333 to the existing node and 9333 to the second node.  That way the second node will "know" its port is 9333 and also advertise it correctly.  

Personally I'd just keep one node available on internet and set the second node to -connect or -addnode (also in bitcoin.conf) to the existing node.  Should save some bandwidth and resources.  With this the second node will download off the existing node exclusively or mainly (depending on connect/add respectively).


If you liked this post buy me a beer.  Beers are quite cheap where I live!
bc1q707guwp9pc73r08jw23lvecpywtazjjk399daa
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3388
Merit: 6581


Just writing some code


View Profile WWW
September 22, 2015, 11:43:48 AM
 #6

.... or you can keep the same 8333 port on that computer and set up your router to forward a different port number on the router to port 8333 on the computer.

I am not sure that would work.  A full node broadcasts the port it uses, so the node needs to know its global internet port.  Having the router remap the port will mean that nobody will be able to connect to the 2nd node, since it will claim to use port 8333.
Wouldn't it just not accept incoming connections?

shorena
Copper Member
Legendary
*
Offline Offline

Activity: 1498
Merit: 1499


No I dont escrow anymore.


View Profile WWW
September 22, 2015, 11:48:59 AM
 #7

.... or you can keep the same 8333 port on that computer and set up your router to forward a different port number on the router to port 8333 on the computer.

I am not sure that would work.  A full node broadcasts the port it uses, so the node needs to know its global internet port.  Having the router remap the port will mean that nobody will be able to connect to the 2nd node, since it will claim to use port 8333.

Besides these rules are usually 1st match, thus everything that comes in on port 8333 would be handled the same, regardless of a different later rule.

It appears that in order to run a full node port 8333 must be forwarded to that computer.
Not so.

Wouldn't it be nice if all problems were this easily solved. Smiley


To expand a little on this. You dont need to allow outside connections to run a full node. A full node that only uses the 8 outgoing connections that you get when you dont open and forward the port is still a full node.

The question I come up with is, why?

If node #1 is connected well to the internet, just let node #2 connect to node #1 locally. What is the benefit of you offering a service twice on the same IP? The nodes would compete for the bandwidth and unless the machines are very old would not max out alone anyway.

.... or you can keep the same 8333 port on that computer and set up your router to forward a different port number on the router to port 8333 on the computer.

I am not sure that would work.  A full node broadcasts the port it uses, so the node needs to know its global internet port.  Having the router remap the port will mean that nobody will be able to connect to the 2nd node, since it will claim to use port 8333.
Wouldn't it just not accept incoming connections?

If thats the result, why bother with a complex setup at all?

Im not really here, its just your imagination.
David Rabahy
Hero Member
*****
Offline Offline

Activity: 709
Merit: 501



View Profile
September 25, 2015, 05:30:18 PM
 #8

If/when one node is down then the other can remain available.
mookid
Sr. Member
****
Offline Offline

Activity: 446
Merit: 251



View Profile WWW
September 25, 2015, 10:04:01 PM
 #9

It would also help if set your two nodes on separate public IPs. If you are behind a router, it would NAT your external IP and your two nodes would use the same public IP address.
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!