Author

Topic: Listening behind a router (Read 1080 times)

legendary
Activity: 2058
Merit: 1452
April 18, 2013, 12:29:36 PM
#5
Thanks guys
Do we know the ratio outgoing-only/upnp enabled clients?
1. get a list of peers using getpeerinfo RPC command
2. use telnet to open a TCP connection
3. if the tcp connection succeeds, the screen will turn black, and will eventually boot you back to command prompt. if it fails, it will say connection refused or similar.
legendary
Activity: 1176
Merit: 1280
May Bitcoin be touched by his Noodly Appendage
April 18, 2013, 02:22:30 AM
#4
Thanks guys
Do we know the ratio outgoing-only/upnp enabled clients?
legendary
Activity: 2058
Merit: 1452
April 17, 2013, 08:46:25 PM
#3
  • the client always tries to maintain 8 outgoing connections. this can be done even behind NAT/router
  • the client always listens for incoming connections, accepting until the connection limit is reached
  • the client advertises itself on the network, allowing other clients to open outbound connections to it
If your client's ability to accept incoming connections is hampered (NAT, router, firewall, improper port-forwarding, ISP restrictions), other clients will not be able to connect to you. The only way to exceed 8 connections is to have incoming connections (or editing the source to open more outgoing connections *not recommended*)
hero member
Activity: 675
Merit: 514
April 17, 2013, 06:22:18 PM
#2
The client is actively trying to connect to other clients until the connection limit is reached.
Listening is only possible with UPnP enabled or if you change the router's settings.
legendary
Activity: 1176
Merit: 1280
May Bitcoin be touched by his Noodly Appendage
April 17, 2013, 03:38:50 PM
#1
I'm not really into networking and I'm wondering how satoshi client can listen to ports behind a router
I know that upnp does that, but even when I compiled (I may be wrong, it's years ago) without upnp, it's still able to connect to the network (that famous 8-limit)

So:
  • Is it possible to listen behind a router without upnp? If so, how?
  • Or is it connecting to 8 nodes (that have open ports) instead of listening?
Jump to: