-
Notifications
You must be signed in to change notification settings - Fork 902
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The purpose of dynamically detected public IP addresses in 0.12.0 'getinfo' output? #5553
Comments
The IP discovery was proposed by @m-schmoock in lightning/bolts#917. It's purpose is to discover our external address if we don't specify one. The port is likely random since you are connecting out, and we should likely not use the port for outgoing connections at all, since we just get a random one back that was assigned to us by our OS. |
@overcoin |
@cdecker @m-schmoock "id": "XXX", Please, note that dynamically detected IP address mentioned above is not mine. I'm sending to you private details by email. Thank you beforehand for looking into that. |
Yes, I'm quite positive I'm running v0.12.0 following the standard procedure: then compiling: Do you think it is possible getinfo output showing v0.12.0 while I'm running some other version? |
Sorry, deleted my last post. |
And yes, you are running 0.12. |
There was no need to delete the entire post. You should only edit it to delete my public IP. It is okay, no worries. |
Just for the record... Now getinfo output is changed. It is showing dynamically detected public IP address is back to my public IP address port 59828. I didn't do any config changes or restarts on my node. |
The port number in getinfo is a visual "bug". Actually that port number is true, but it's the port of your outgoing connections. Your node will announce the default port (9735 on mainnet). Maybe instead of assuming the port number, we could use the binding port number, as that way people could run autodiscovery on non-default ports as well, but that also needs the |
@overcoin Sorry, for responding a bit late. It may be the case, as mentioned by devastgh, that this is 'visual bug' that only tells you that it would announce that if enabled. Also the port that is you outgoing port, which is dynamically. Also, I know for sure that this will not be anounced. There will be a follow up that will deprecate the @devastgh I don't like the idea of using the binding port, I already thought about that. The local binding port can be completely different, especially when talking about containerized services in docker using some kind of network bridge proxy etc. |
Makes sense. However it might need some new option like |
Also |
I understand that in 0.12.0 release dynamically detected public IP addresses are added to
getinfo
output. I can see that the port of my public IP address is constantly changing. What is the purpose of dynamically changing the port if router firewall is blocking this ports?The text was updated successfully, but these errors were encountered: