Linux: Get public IP address using command line utilities.

$> wget -qO- ipecho.net/plain $> dig +short myip.opendns.com @resolver1.opendns.com $> wget -qO- shtuff.it/myip/short $> wget -qO- whatismyip.akamai.com
Use any of these commands to get public ip address.

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.