Bitcoin Forum
April 11, 2021, 11:45:40 PM *
News: Latest Bitcoin Core release: 0.21.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Listening behind a router  (Read 1051 times)
jackjack
Legendary
*
Offline Offline

Activity: 1176
Merit: 1079


May Bitcoin be touched by his Noodly Appendage


View Profile
April 17, 2013, 08: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?

Own address: 19QkqAza7BHFTuoz9N8UQkryP4E9jHo4N3 - Pywallet support: 1AQDfx22pKGgXnUZFL1e4UKos3QqvRzNh5 - Bitcointalk++ script support: 1Pxeccscj1ygseTdSV1qUqQCanp2B2NMM2
Pywallet: instructions. Encrypted wallet support, export/import keys/addresses, backup wallets, export/import CSV data from/into wallet, merge wallets, delete/import addresses and transactions, recover altcoins sent to bitcoin addresses, sign/verify messages and files with Bitcoin addresses, recover deleted wallets, etc.
1618184740
Hero Member
*
Offline Offline

Posts: 1618184740

View Profile Personal Message (Offline)

Ignore
1618184740
Reply with quote  #2

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

Posts: 1618184740

View Profile Personal Message (Offline)

Ignore
1618184740
Reply with quote  #2

1618184740
Report to moderator
Schleicher
Hero Member
*****
Offline Offline

Activity: 675
Merit: 510



View Profile
April 17, 2013, 11: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.

grue
Legendary
*
Offline Offline

Activity: 2058
Merit: 1219



View Profile
April 18, 2013, 01:46:25 AM
 #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*)

It is pitch black. You are likely to be eaten by a grue.

Adblock for annoying signature ads | Enhanced Merit UI
jackjack
Legendary
*
Offline Offline

Activity: 1176
Merit: 1079


May Bitcoin be touched by his Noodly Appendage


View Profile
April 18, 2013, 07:22:30 AM
 #4

Thanks guys
Do we know the ratio outgoing-only/upnp enabled clients?

Own address: 19QkqAza7BHFTuoz9N8UQkryP4E9jHo4N3 - Pywallet support: 1AQDfx22pKGgXnUZFL1e4UKos3QqvRzNh5 - Bitcointalk++ script support: 1Pxeccscj1ygseTdSV1qUqQCanp2B2NMM2
Pywallet: instructions. Encrypted wallet support, export/import keys/addresses, backup wallets, export/import CSV data from/into wallet, merge wallets, delete/import addresses and transactions, recover altcoins sent to bitcoin addresses, sign/verify messages and files with Bitcoin addresses, recover deleted wallets, etc.
grue
Legendary
*
Offline Offline

Activity: 2058
Merit: 1219



View Profile
April 18, 2013, 05: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.

It is pitch black. You are likely to be eaten by a grue.

Adblock for annoying signature ads | Enhanced Merit UI
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!