Bitcoin Forum
May 10, 2024, 06:19:39 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: not_publicly_routable on getpeerinfo  (Read 127 times)
Kepp (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 4


View Profile
November 09, 2022, 10:00:06 AM
Merited by DdmrDdmr (3), Welsh (1)
 #1

Good, I'm a bit new to the topic of nodes, and I have a doubt when obtaining the pairs connected to my node.

https://imgur.com/a/hj0bXQt

As you can see, when I get the list of connected peers, some of them have a not_publicly_routable network and as ip addresses 172.26.0.1 and 172.26.0.2, which are private networks.
How do those nodes connect to me (or me to them) without me knowing their ip address?
1715365179
Hero Member
*
Offline Offline

Posts: 1715365179

View Profile Personal Message (Offline)

Ignore
1715365179
Reply with quote  #2

1715365179
Report to moderator
"This isn't the kind of software where we can leave so many unresolved bugs that we need a tracker for them." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715365179
Hero Member
*
Offline Offline

Posts: 1715365179

View Profile Personal Message (Offline)

Ignore
1715365179
Reply with quote  #2

1715365179
Report to moderator
1715365179
Hero Member
*
Offline Offline

Posts: 1715365179

View Profile Personal Message (Offline)

Ignore
1715365179
Reply with quote  #2

1715365179
Report to moderator
1715365179
Hero Member
*
Offline Offline

Posts: 1715365179

View Profile Personal Message (Offline)

Ignore
1715365179
Reply with quote  #2

1715365179
Report to moderator
vv181
Legendary
*
Offline Offline

Activity: 1932
Merit: 1273


View Profile
November 09, 2022, 10:46:26 AM
Merited by DdmrDdmr (3), ABCbits (2), Welsh (1), Husna QA (1)
 #2

Quote

How do those nodes connect to me (or me to them) without me knowing their ip address?

Bitcoin Core have hardcoded DNS seed and node IPs. If you are running a brand new node, that information is where your node relies upon to get in into the network.

After establishing that part, each node in the network do also share each other information and the node may keep the information in their own known-node local databases, so other or you can connect to each other. For a further detailed explanation, you can refer to: https://developer.bitcoin.org/devguide/p2p_network.html
Kepp (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 4


View Profile
November 11, 2022, 08:45:46 PM
 #3

After establishing that part, each node in the network do also share each other information and the node may keep the information in their own known-node local databases, so other or you can connect to each other. For a further detailed explanation, you can refer to: https://developer.bitcoin.org/devguide/p2p_network.html

So when I'm connected to a  not publicly routeable node, does that mean I'm connected to it through another node?
ABCbits
Legendary
*
Offline Offline

Activity: 2870
Merit: 7492


Crypto Swap Exchange


View Profile
November 12, 2022, 09:50:18 AM
Merited by DdmrDdmr (3), Welsh (1)
 #4

How do those nodes connect to me (or me to them) without me knowing their ip address?

Since those IP are private IP address (as defined by rfc1918[1]), it's possible those nodes actively scan the local network.

After establishing that part, each node in the network do also share each other information and the node may keep the information in their own known-node local databases, so other or you can connect to each other. For a further detailed explanation, you can refer to: https://developer.bitcoin.org/devguide/p2p_network.html

So when I'm connected to a  not publicly routeable node, does that mean I'm connected to it through another node?

No. It means it can't be accessed through outside local network since the node has private IP address[2]. Bitcoin Core getpeerinfo only show directly connected node.

[1] https://www.rfc-editor.org/rfc/rfc1918
[2] https://networkengineering.stackexchange.com/a/40336

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Kingkongs
Newbie
*
Offline Offline

Activity: 27
Merit: 2


View Profile
November 12, 2022, 05:33:38 PM
 #5

How do those nodes connect to me (or me to them) without me knowing their ip address?

Since those IP are private IP address (as defined by rfc1918[1]), it's possible those nodes actively scan the local network.

After establishing that part, each node in the network do also share each other information and the node may keep the information in their own known-node local databases, so other or you can connect to each other. For a further detailed explanation, you can refer to: https://developer.bitcoin.org/devguide/p2p_network.html

So when I'm connected to a  not publicly routeable node, does that mean I'm connected to it through another node?

No. It means it can't be accessed through outside local network since the node has private IP address[2]. Bitcoin Core getpeerinfo only show directly connected node.

[1] https://www.rfc-editor.org/rfc/rfc1918
[2] https://networkengineering.stackexchange.com/a/40336

Super, this is really informative, thanks for sharing those links, OP try and take a look at the second link as well, very informative and well detailed
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!