Bitcoin Forum
May 13, 2024, 09:21:49 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Running Bitcoin on multiple machines behind NAT  (Read 759 times)
fancyDog (OP)
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
July 20, 2014, 05:26:02 AM
 #1

Hi all,

I am currently trying to run bitcoin on different machines behind NAT.
Do I need to set port forwarding in my router so that other nodes can connect to me? Thanks.
1715635309
Hero Member
*
Offline Offline

Posts: 1715635309

View Profile Personal Message (Offline)

Ignore
1715635309
Reply with quote  #2

1715635309
Report to moderator
1715635309
Hero Member
*
Offline Offline

Posts: 1715635309

View Profile Personal Message (Offline)

Ignore
1715635309
Reply with quote  #2

1715635309
Report to moderator
1715635309
Hero Member
*
Offline Offline

Posts: 1715635309

View Profile Personal Message (Offline)

Ignore
1715635309
Reply with quote  #2

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

Posts: 1715635309

View Profile Personal Message (Offline)

Ignore
1715635309
Reply with quote  #2

1715635309
Report to moderator
deepceleron
Legendary
*
Offline Offline

Activity: 1512
Merit: 1032



View Profile WWW
July 20, 2014, 05:50:13 AM
 #2

The way to do this is have one Bitcoin client for connecting to the public P2P network, where the external Bitcoin port is port forwarded to that NAT IP address. Then set all other Bitcoins to only connect to that machine's internal IP address using the -connect command line or config option.

Source:
Right now there isn't a port number setting to do that.  It's a feature yet to be implemented.  You can only set up your NAT to port-forward to one of the computers.  (I said something earlier about NAT port translation, but that wouldn't work, other nodes wouldn't know to connect to that port)

If you want, as a small optimization, you could run the rest of your computers as:
bitcoin -connect=<the IP of the first computer>

so they get all their network communication from the first computer and don't all connect over the net individually for the same information.  This saves bandwidth, although it doesn't use much bandwidth to begin with, so it wouldn't really matter unless you had tons of computers.

For redundancy in case the first computer goes down, you could have two that connect out and the rest connect to both of them.  The first two are run normally, the rest are run like:
bitcoin -connect=<IP1> -connect=<IP2>
fancyDog (OP)
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
July 20, 2014, 05:54:54 AM
 #3

Thanks. It is cool! Wink
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!