Replies: 1 comment 2 replies
-
|
@asabya : This is fantastic, thanks for sharing. CCing @sumanjeet0012, @pacrob, @lla-dane, @acul71 and @yashksaini-coder, who are working with me on this front. Wish to have their thoughts and feedback too. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When a node runs on AWS EC2 or behind a home router, the OS only knows its private IP (e.g.
10.0.0.5). It has no way to learn its public-facing IP. This means the node advertises only private/local addresses to the network, so peers outside the local network can't reach it.There is no separation between "listen addresses" and "advertised addresses" in py-libp2p.
Proposed solution to display public reachable ip/addresses
announce_addrsas configuration in the host while init, which will be returned in theget_addr()(js-libp2p style)address_factoryas configuration in the host while init, which will manupulate the addrs in theget_addr()(go-libp2p style)get_external_ip()to inject the external IP intoget_addrs()ObservedAddrManagerthat will track what other peers report as host address, and after sufficient confirmations, injects it inget_addrs()Beta Was this translation helpful? Give feedback.
All reactions