Mint

5 Ways to Find Your Private IP Address in Linux Mint 20

Find Private IP Address in-Linux Mint 20

Private IP addresses are used in a system for communication inside a local network. Knowing the IP address of your system can be useful in many situations. You may require it for configuring certain services on your network or to allow someone remote access to your system. Similarly, you may also require it for troubleshooting purposes.

In this post, we are going to show you how to find the IP address in the Linux Mint system. Previously, we have discussed how to find the IP address in Ubuntu, Debian, and CentOS.

Note: The commands mentioned here have been tested in Linux Mint 20 OS.

Method # 1: The “ip addr” command

The “ip addr” command is the most common way for quickly finding the IP address of a system. All you need is to open the Terminal application by using the Ctrl+Alt+T shortcut and then type ip addr in the prompt that appears.

$ ip addr

The above command will list all the network interfaces along with their details which include interface status, IP address, MTU size, etc. For the private IP address, look for the line that reads “inet”. The number in front of it is your private IP address. If you see the following output, our private IP address is 192.168.72.170/24.

ip addr

Method # 2: The “ifconfig” command

Similar to “ip addr”, the “ifconfig” command is another most common command used to view IP related information. To use this command to find the IP address, just type “ifconfig” in the shell prompt:

$ ifconfig

This command will list all the network interfaces along with their details which include interface status, IP address, MTU size, etc. For the private IP address, look for the line that reads “inet”. The number in front of it is your private IP address. If you see the following output, our private IP address is 192.168.72.170 with netmask 255.255.255.0.

ifconfig

Method # 3: The “hostname” command

If you just want to view the IP address of your system with no other information, use the hostname command as follows:

$ hostname -I

This command just prints out the IP address on the Terminal.

hostname

Method # 4: Using “ip route” command

The “ip route” command can also be used to find the IP address of a system. In order to find the IP address of a system, use the command as follows:

$ ip route

This command will print out the IP address of your system along with other network details.

ip route

Method # 5: The “nmcli” command

There is another command “nmcli” which can also be used to find the IP address of a system. In order to use this command to find the private IP address of a system, just type the following command in the Terminal:

$ nmcli device show

For the private IP address, look for the line that reads “IP4.ADDRESS[1]”. The number in front of it is your private IP address. If you see the following output, our private IP address is 192.168.72.170/24. nmcli

Using any of the methods explained above, you can easily and quickly find the IP address of your system. If you know of other ways to find the private IP address in Linux Mint, we would love to know in the comments below!

If you are interested in finding the public IP address, visit our post on How to Find Your Public IP address.

Similar Posts