Bitcoin Forum
December 09, 2016, 10:05:15 AM *
News: To be able to use the next phase of the beta forum software, please ensure that your email address is correct/functional.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Bitcoin port-forwarding?  (Read 12714 times)
matthewh3
Legendary
*
Offline Offline

Activity: 1372



View Profile WWW
February 15, 2012, 03:46:36 PM
 #1

Is there any benefits to forwarding port 8333TCP for using the Bitcoin client or will UPnP do just as good.  Also if there is a benefit how can you forward the ports for more than one PC on your home network as I can only allocate a port to one device on my router.

Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1481277915
Hero Member
*
Offline Offline

Posts: 1481277915

View Profile Personal Message (Offline)

Ignore
1481277915
Reply with quote  #2

1481277915
Report to moderator
1481277915
Hero Member
*
Offline Offline

Posts: 1481277915

View Profile Personal Message (Offline)

Ignore
1481277915
Reply with quote  #2

1481277915
Report to moderator
1481277915
Hero Member
*
Offline Offline

Posts: 1481277915

View Profile Personal Message (Offline)

Ignore
1481277915
Reply with quote  #2

1481277915
Report to moderator
btc_artist
Full Member
***
Offline Offline

Activity: 154


Bitcoin!


View Profile WWW
February 15, 2012, 03:51:27 PM
 #2

Is there any benefits to forwarding port 8333TCP for using the Bitcoin client or will UPnP do just as good.  Also if there is a benefit how can you forward the ports for more than one PC on your home network as I can only allocate a port to one device on my router.
Port forwarding is not necessary to run Bitcoin. The only reason to forward the port would be to have more than 8 connections. If you want to do port-forwarding for more than one box on your home network, set each Bitcoin instance to use a different port (in bitcoin.conf) and forward each port to the specific device.

BTC: 1CDCLDBHbAzHyYUkk1wYHPYmrtDZNhk8zf
LTC: LMS7SqZJnqzxo76iDSEua33WCyYZdjaQoE
matthewh3
Legendary
*
Offline Offline

Activity: 1372



View Profile WWW
February 15, 2012, 04:02:52 PM
 #3

Is there any benefits to having more than 8 peer connections?

Matthew N. Wright
Untrustworthy
Hero Member
*****
Offline Offline

Activity: 588


Hero VIP ultra official trusted super staff puppet


View Profile
February 15, 2012, 04:03:57 PM
 #4

Is there any benefits to having more than 8 peer connections?

Faster transactions confirmations? Nah, I guess not.

Maybe a better chance of picking up double-spends?

kjj
Legendary
*
Offline Offline

Activity: 1302



View Profile
February 15, 2012, 05:17:54 PM
 #5

Is there any benefits to forwarding port 8333TCP for using the Bitcoin client or will UPnP do just as good.  Also if there is a benefit how can you forward the ports for more than one PC on your home network as I can only allocate a port to one device on my router.

UPNP is how software running on your computer talks to your router to establish port forwarding.  If UPNP works, you don't need to forward the port manually too.

There is no real benefit to you in allowing incoming connections, but the network needs some amount of connectable ports so that new nodes can get online.  I don't believe that there is a shortage of incoming ports on the network at the moment, so don't feel too bad if you can't get port forwarding set up.

p2pcoin: a USB/CD/PXE p2pool miner - 1N8ZXx2cuMzqBYSK72X4DAy1UdDbZQNPLf - todo
I routinely ignore posters with paid advertising in their sigs.  You should too.
bulanula
Hero Member
*****
Offline Offline

Activity: 518



View Profile
February 15, 2012, 05:27:55 PM
 #6

Is there any benefits to having more than 8 peer connections?

So no benefits if you got 20 connections compared to say 8 connections ?

What about solo mining ? I think latency and connections do affect that so it can matter but I am not sure ...
deepceleron
Legendary
*
Offline Offline

Activity: 1470



View Profile WWW
February 15, 2012, 05:49:30 PM
 #7

Having a computer behind NAT that doesn't accept incoming connections is like downloading a torrent while blocking its uploads. If nobody took the time to set port forwarding, Bitcoin wouldn't be as responsive.

While miners create transaction blocks, the P2P network does the work of propagating the blocks to other nodes. In addition the transaction messages when someone presses "send coins" are relayed via the p2p network to other nodes (some of which will be miners). If you only have a few connections, you are relying to just a few p2p peers to relay your transactions to others; if you are highly connected, than many more peers get your transactions directly from you. If you complain about slow block downloading, remember the blockchain comes from other peers; if half of the peers are a black hole, it takes longer to download.

It is also possible for bad guys to create bad nodes that do odd things on the p2p network, the more good nodes there are with full connectivity, the better.

As Bitcoin runs on port 8333, you can only forward this port to one computer inside your network. More than one computer running Bitcoin with uPnP, wanting the same port, will likely confuse your router. Additional clients inside your network should connect to your main Bitcoin using the connect=IP.IP.IP.IP config option; they will sync much faster and your bandwidth use will be less.

- 55 active connections to Bitcoin network

matthewh3
Legendary
*
Offline Offline

Activity: 1372



View Profile WWW
February 15, 2012, 05:51:24 PM
 #8

I've set up port-forwading and have 54 connections.

bulanula
Hero Member
*****
Offline Offline

Activity: 518



View Profile
February 15, 2012, 06:05:16 PM
 #9

Having a computer behind NAT that doesn't accept incoming connections is like downloading a torrent while blocking its uploads. If nobody took the time to set port forwarding, Bitcoin wouldn't be as responsive.

While miners create transaction blocks, the P2P network does the work of propagating the blocks to other nodes. In addition the transaction messages when someone presses "send coins" are relayed via the p2p network to other nodes (some of which will be miners). If you only have a few connections, you are relying to just a few p2p peers to relay your transactions to others; if you are highly connected, than many more peers get your transactions directly from you. If you complain about slow block downloading, remember the blockchain comes from other peers; if half of the peers are a black hole, it takes longer to download.

It is also possible for bad guys to create bad nodes that do odd things on the p2p network, the more good nodes there are with full connectivity, the better.

As Bitcoin runs on port 8333, you can only forward this port to one computer inside your network. More than one computer running Bitcoin with uPnP, wanting the same port, will likely confuse your router. Additional clients inside your network should connect to your main Bitcoin using the connect=IP.IP.IP.IP config option; they will sync much faster and your bandwidth use will be less.

- 55 active connections to Bitcoin network

All nice and well but how does this affect solo mining folks ?

Lowered chances of finding a block due to lower connections ?
deepceleron
Legendary
*
Offline Offline

Activity: 1470



View Profile WWW
February 15, 2012, 06:10:41 PM
 #10

You won't have a lower chance of finding a block, but publishing your block find will be hindered. If someone else found a block with a similar difficulty hash at the same time as you, it may be the miner who got their block distributed more quickly that wins the block generate.

kjj
Legendary
*
Offline Offline

Activity: 1302



View Profile
February 15, 2012, 06:28:07 PM
 #11

Having a computer behind NAT that doesn't accept incoming connections is like downloading a torrent while blocking its uploads. If nobody took the time to set port forwarding, Bitcoin wouldn't be as responsive.

While miners create transaction blocks, the P2P network does the work of propagating the blocks to other nodes. In addition the transaction messages when someone presses "send coins" are relayed via the p2p network to other nodes (some of which will be miners). If you only have a few connections, you are relying to just a few p2p peers to relay your transactions to others; if you are highly connected, than many more peers get your transactions directly from you. If you complain about slow block downloading, remember the blockchain comes from other peers; if half of the peers are a black hole, it takes longer to download.

It is also possible for bad guys to create bad nodes that do odd things on the p2p network, the more good nodes there are with full connectivity, the better.

As Bitcoin runs on port 8333, you can only forward this port to one computer inside your network. More than one computer running Bitcoin with uPnP, wanting the same port, will likely confuse your router. Additional clients inside your network should connect to your main Bitcoin using the connect=IP.IP.IP.IP config option; they will sync much faster and your bandwidth use will be less.

- 55 active connections to Bitcoin network

Bitcoin does not require any specific port.  If you use UPNP, you will likely get a random port assignment, and if you plan to run multiple nodes on a single IP, then you will need to use other ports.  It works just fine, and you can get incoming connections regardless of the ports you use or what you have to do to get them.

The whole point of having a network is that it isn't necessary to connect to every node.  8 connections is "enough" for just about anyone.  More is better, sorta, maybe, a little, but not worth losing sleep over.  If you are mining, you would be better off with 8 connections to the 8 biggest pools than you would be with 100 connections to random other nodes.

p2pcoin: a USB/CD/PXE p2pool miner - 1N8ZXx2cuMzqBYSK72X4DAy1UdDbZQNPLf - todo
I routinely ignore posters with paid advertising in their sigs.  You should too.
SgtSpike
Legendary
*
Offline Offline

Activity: 1344



View Profile
February 15, 2012, 07:11:41 PM
 #12

One thing to make note of... if you port forward, you'll be using up more bandwidth (from relaying the blockchain to more users).  For some people, this is completely unimportant.  For others (such as those in Australia), it can push them over their monthly limitations.
matthewh3
Legendary
*
Offline Offline

Activity: 1372



View Profile WWW
February 15, 2012, 07:27:07 PM
 #13

While I've got a 40Mbit/10Mbit VDSL2 FTTC connection that is getting upgraded to 80Mbit/20Mbit connection this year with unlimited bandwidth (tho I think they'd moan after 100GB).  So might as well forward my ports to help the network?

SgtSpike
Legendary
*
Offline Offline

Activity: 1344



View Profile
February 15, 2012, 07:30:42 PM
 #14

While I've got a 40Mbit/10Mbit VDSL2 FTTC connection that is getting upgraded to 80Mbit/20Mbit connection this year with unlimited bandwidth (tho I think they'd moan after 100GB).  So might as well forward my ports to help the network?
It's completely up to you.  If you take more of the load off of other people, then it could help them.
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!