Home » Questions » Computers [ Ask a new question ]

Is there a command line way to show the outward-facing IP address for my machine?

Is there a command line way to show the outward-facing IP address for my machine?

Is there a command line way to show the outward-facing IP address for my machine?

Asked by: Guest | Views: 51
Total answers/comments: 1
Guest [Entry]

"ifconfig.me has some great cmd line options.

This returns your ip

curl ifconfig.me/ip

This returns a large chunk of info

curl ifconfig.me/all"