---

How To Find My Public IP Address From Command Line On a Linux

An IP is short for Internet Protocol. It is used to identify computers or mobile devices on the Internet. Each device connected to the Internet has an IP address. How do I find out my public IP address on the Linux and OS X Unix command line to use with my own bash shell script without using third party web site? Is there command-line option which will show my dynamic IP address on a Ubuntu or Fedora Linux?

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis