Quantcast
Channel: My Galagzee! » shell
Viewing all articles
Browse latest Browse all 3

Finding public IP on Linux command line

$
0
0

Here’s a handy command to display the Internet facing IP on a Unix/Linux command line. This is particularly useful on systems where lynx is not available, and where the system might be behind a firewall so that the public IP cannot be discerned from ifconfig output.

curl -s myip.dk | grep 'IP Address' | egrep -o '[0-9.]{3,}+'


Viewing all articles
Browse latest Browse all 3

Trending Articles