How to Find Your IP Address (Public IP Address) in Ubuntu 19.04
In this article, we are going to learn how to Find Your IP Address (Public IP Address) in Ubuntu 19.04. A public IP address is a unique IP address used to access the Internet. Like a postal address for delivering postal mail to your home, a public IP address is assigned to a unique IP address globally on a computing device. This is like a physical address (MAC address) that can not be given on multiple devices. There are many websites available on the internet through which we can find our public IP address. But you can also find your public IP address on your Ubuntu operating system. For this, we have to install a curl named package.
Follow the below steps to Find your (Public IP Address) IP address in Ubuntu 19.04:
As we discussed above, you need to install a curl package to find your (public IP address) IP address. Follow the below command to install a curl package.
[email protected]:~$ sudo apt-get install curl [sudo] password for itsmarttricks: Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: libcurl4 The following NEW packages will be installed: curl The following packages will be upgraded: libcurl4 1 upgraded, 1 newly installed, 0 to remove and 186 not upgraded. Need to get 0 B/399 kB of archives. After this operation, 412 kB of additional disk space will be used. Do you want to continue? [Y/n] y (Reading database ... 172002 files and directories currently installed.) Preparing to unpack .../libcurl4_7.64.0-2ubuntu1.1_amd64.deb ... Unpacking libcurl4:amd64 (7.64.0-2ubuntu1.1) over (7.64.0-2ubuntu1) ... Selecting previously unselected package curl. Preparing to unpack .../curl_7.64.0-2ubuntu1.1_amd64.deb ... Unpacking curl (7.64.0-2ubuntu1.1) ... Setting up libcurl4:amd64 (7.64.0-2ubuntu1.1) ... Setting up curl (7.64.0-2ubuntu1.1) ... Processing triggers for man-db (2.8.5-2) ... Processing triggers for libc-bin (2.29-0ubuntu2) ...
After installing the curl package just type the command curl ifconfig.me to find your (Public IP Address) IP Address. Refer to the command below.
[email protected]:~$ curl ifconfig.me [email protected]:~$
Also Read – Top Basic Linux Commands for Beginners
That’s all, In this article, we have explained How to Find Your (Public IP Address) IP Address in Ubuntu 19.04. I hope you enjoy this article. If you like this article, then just share it. If you have any questions about this article, please comment.