- Public IP Address: ISPs provide the public IP address to routers so your system can connect to the internet directly. Instead of giving a home address, sending mail to the PO is as easy as connecting to the internet using a public IP address. It is very noticeable but it is also safe.
- Private IP Address: The address that the network router assigns to your device is the private IP address of that device, which users can also hide. Each device has a different private IP address on the same internal network that allows them to communicate with each other.
Additionally, IP addresses are available in two versions: IPv4 and IPv6.
- An older internet protocol version is IPv4, which uses a 32-bit number.
- IPv6 is its updated version which uses 128 bits.
Let us now take a look at the approach you can use to find your IP address on Pop!_OS without getting any errors.
How to Find Your IP Address on Pop!_OS 22.04
You can find your public and private IP addresses on Pop!_OS through CLI and GUI methods. So, let us discuss them:
Command-Line Approach (CLI)
There are different command methods to find your private IP address. Here, we will discuss the CLI methods. And for this, first, open the terminal.
First, we will find the IP address with the ip command. Terminal displays the network adapters when you run any of the following commands:
ip address
ip a
ip addr show
ip a list
The numbers after the slash (-/24) and (-/64) indicate the size of the network. It helps with mapping and scanning network size.
The above entries will include a Wi-Fi (wireless) and an Ethernet (wired) adapter. Virtual adapters may be included as well. Most often, only one entry lists an IP address that you need.
If you want minimal details, then go through the following hostname command to find your private IP address:
Similarly, you can also find the hostname’s network address(es) with the help of the following hostname command:
To find out your private IP address, run the command below.
Through the ifconfig command, you can easily find your system’s IP address easily. This command displays all the system’s labeled network connections, including MULTICAST, RUNNING, BROADCAST, and UP. Also, it lists the IP addresses of both IPv4 and IPv6 separately.
In the above output, you can see the term LOOPBACK, which refers to the IP address that returns the traffic to the same computer.
Mostly, this command is present by default in all Linux distros. If you do not have it in your system, download it through the following command:
Through the following nmcli command, you can find out the internal IP address of your system along with the complete details of the device.
You can also find the public IP address through two CLI approaches:
Method 1: Run the following commands in the terminal to know your public IP address:
- curl -s https://icanhazip.com
- curl ipinfo.io/ip
- curl ifconfig.me
- curl checkip.dyndns.org
- host myip.opendns.com resolver1.opendns.com
- curl ident.me
- curl api.ipify.org
- dig +short myip.opendns.com @resolver1.opendns.com
- curl ipecho.net/plain
- wget -O – -q https://checkip.amazonaws.com
Method 2: You can also find your public or external IP address by opening the following websites on the browser.
Graphical Interface Approach (GUI)
You can also find your system’s IP address using a GUI or point-and-click interface:
First, go to the application menu and type Settings in the search box.
Click on the settings icon as seen in the above image, and then click on Network. Afterward, click on the settings icon marked in the following image.
Clicking this will bring up a pop-up window that looks like this.
Here, you will get the details of the wired settings, in which you will get both the IPv4 and IPv6 addresses of your system.
Conclusion
An IP address is required in many activities like connecting a server, pinging a host, debugging a network, and clustering. In this tutorial, we have discussed almost all the methods (GUI and CLI) through which you can find your IP address in Pop!_OS 22.04.