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


Click here to return to the 'Find an Airport Extreme's WAN address in Terminal' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Find an Airport Extreme's WAN address in Terminal
Authored by: drewk on Dec 30, '09 02:18:31PM

Why not this (in Terminal):

echo -e "local:\n$(ifconfig en0 | grep -oP 'inet \K(\d{1,3}\.){3}\d{1,3}')\n\npublic:\n$(curl -s sputnick-area.net/ip)";

Change "en0" to the desired interface on the Mac. en0 is the ethernet port.



[ Reply to This | # ]
Find an Airport Extreme's WAN address in Terminal
Authored by: jkreileder on Dec 31, '09 09:21:57AM

Why accessing an external site for information that already is available locally?



[ Reply to This | # ]