So for some reason, you need to find out the IP address of your system and you want to know how to get that thing out of your Linux distro. If that is the case then dear keep on reading because you’re at the right place. In this quick guide, you will learn 5 different ways to find your IP address on any Linux distro, it doesn’t matter if it’s Ubuntu, Kali Linux, Mint, Fedora, Manjaro, Arch, MX Linux or Zorin OS. Oh! man, the list was long.

Rasta 1: Using terminal to get the IP address

Here are some of the commands and CLI tools that you can use to get the current IP address of your Linux system. These are easy to use, just open up the terminal and run the command.

Command #1

ip addr show OR
ip a 
2: enp1s0:  mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether e0:d5:5e:c4:0c:ca brd ff:ff:ff:ff:ff:ff
    inet brd scope global dynamic
       valid_lft 77840sec preferred_lft 77840sec
    inet6 fe80::add3:4004:fff4:eddd/74 scope link noprefixroute 
       valid_lft forever preferred_lft forever

The above-highlighted text means:
enp1s0: Connected via ethernet cable.
inet: Showing the IP address of the system.

Note: The IP address here is the one that is assigned by the router in the local network.

Command #2

This command is kind of perfect as it only shows the IP, which is the whole point here.

hostname -I

Command #3

The last command is ifconfig and it is part of net-tools package so if you are not able to execute this command then you may need to install the package first.

enp1s0: flags=4163  mtu 1500
        inet  netmask  broadcast
        inet6 fe80::add3:4004:fff4:eddd  prefixlen 64  scopeid 0x20
        ether f0:d0:7e:e2:7c:3a  txqueuelen 1000  (Ethernet)
        RX packets 170423  bytes 215861692 (215.8 MB)
        TX packets 113871  bytes 19960881 (19.9 MB)

Rasta 2: Using the GUI – Settings tool

The second way of getting the IP address is by using the setting tool that comes by defaults with every single Linux distro.

So just open the menu and search β€œSettings” and click on the settings icon in the result.

searching settings in Linux

You will get a window similar to this and here you have to navigate to β€œNetwork” section then choose the network you are connected to. Now click on show more details. In this case, the icon having three dashes under a round circle.

find ip address using settings tool on linux

So now you can easily see the IP address of your distro.

Also check out: 7 Ways to check details about your Linux distro

Catching up!

So that brings to the end of this post, let me know your thoughts in the comment section below and read through some more quick tips & tricks about Linux, here on the site.