简体   繁体   中英

Get public ip of router

I there a way to determine the IP address WITHOUT resorting to a remote server to validate a web request. Seems like if you can trace-route you could get all ip's in a chain... Unsure how to validate that.

If it's not possible, it does make sense that it could not be. It makes sense that you would want Multiple remote endpoints to validate your ip, in case one is compromised.

traceroute won't even help. You'd need a traceroute from somewhere out there on the Internet toward you to get the public IP address of a NAT that you are behind.

There is no general way to ask a NAT router what public IP address it will use for connections that you originate. In general there could even be more than one (eg load balanced WAN connections).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM