Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Not on my machine...' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Not on my machine...
Authored by: robg on May 14, '01 11:11:25AM
Netstat doesn't seem to return any info about the external IP address if you're using a hardware router:
[8:06am robg ~]% netstat -rn

Routing tables
Internet:
Destination Gateway Flags Refs Use Netif Expire
default 192.168.1.99 UGSc 8 5 en0
127.0.0.1 127.0.0.1 UH 9 9003 lo0
192.168.1 link#2 UC 0 0 en0
192.168.1.99 0:22:58:d6:cb:24 UHLW 9 0 en0 1194
192.168.1.232 link#2 UHLW 1 1771 en0
192.168.1.255 ff:ff:ff:ff:ff:ff UHLWb 2 273 en0
As far as I've seen, the only way to get your external IP address is by hitting a site outside your internal network and requesting the IP number.

[ Reply to This | # ]