简体   繁体   中英

Get gateway's IP address

Let I've an URL, for instance http://www.google.com/ . I want to know all of gateway's IP addresses for package's path. Is it possible to do? If yes, please give me a pointing.

When you are outside of a local network (for example you are outside of google local network) then there is no such a thing like gateway IP of an IP. If you mean a default gateway , then read this for more info.

As an outside host which needs to connect to google.com you just can convert that domain to an corresponding IP address. To do this, you can use gethostbyname .

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