Linux: Get public IP address using command line utilities.

$> wget -qO- $> wget -qO- $> dig +short $> wget -qO- $> wget -qO- $> wget -qO- $> wget -qO-
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.