tomp2p / TomP2P

A P2P-based high performance key-value pair storage library
http://tomp2p.net
Apache License 2.0
442 stars 122 forks source link

Discovery-Mode #71

Open nicoruti opened 9 years ago

nicoruti commented 9 years ago

I want the initial peer to be available to the internet such that others can bootstrap to it. For this, port forwarding can be enabled on the NAT in front of the initial peer. Since this peer cannot discover its external IP address (since there's no other peer to ask), it needs to bind to the local address.

It would be useful to have a very special peer somewhere publicly deployed that only serves as discover-partner (telling the requesting peers which external IP they have). This special peer should not serve for bootstrapping and should never be part of the p2p system.

nicoruti commented 9 years ago

As a workaround, one could use this link and parse the answer: http://checkip.amazonaws.com/ Then modify the PeerAddress manually.