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

Click here to return to the 'you can also use this' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
you can also use this
Authored by: stoffel on May 14, '01 04:52:09AM
netstat -rn

[ Reply to This | # ]
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
Destination Gateway Flags Refs Use Netif Expire
default UGSc 8 5 en0 UH 9 9003 lo0
192.168.1 link#2 UC 0 0 en0 0:22:58:d6:cb:24 UHLW 9 0 en0 1194 link#2 UHLW 1 1771 en0 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 | # ]