Get IP from within handler
Opened this issue · 2 comments
unitink72 commented
Is there a way to find out the IP of the other end from within a connection handler? I'm a new to GO but not seeing how this is possible as-is.
leprosus commented
golang-p2p has not the functionality.
But I am working under the next major version and I am about to add it
devicemxl commented
"Is there a way to find out the IP of the other end from within a connection handler? I'm a new to GO but not seeing how this is possible as-is."
I don't know if you discover how, but I think you could be:
- (local) Network discovery to identify active IP addresses
- For each active IP address, send a request to the endpoint
- Wait for the response to determine if the platform is installed