3 ways to find your local IP address in Debian 10

In our daily work at the computer, we need to know the IP address of our machine from time to time. This guide lists three ways in which you can find the IP address of your local network card in Debian 10 using a terminal.

Using ifconfig

A widely used command to find network configuration is the ifconfig command. If it is not installed on your computer (as it was on my system), you can install it by following the procedure.

Open a terminal with superuser rights and run the following command to install net-tools packages.

apt-get install net-tools

Wait for the team to finish.

After you have successfully installed the ifconfig command on your computer, execute it on the terminal.

ifconfig

You will see which IP address is connected to which network interface. If you want to check the network configuration for a specific interface, the command should look like this.

ifconfig 

replace with the interface you like looking for. In my example, the ens33 network interface.

Specify an IP address for a specific network interface.

Using ip addr command

The second command you can use to find the IP address is the ip addr command. RunIP addressAt the terminal.

ip addr

Linux ip addr command

You will see which IP is connected to which interface in the command output.

Using the hostname command

The last command you can use to find the IP address is executed by the hostname command as follows.

hostname -I

You will have the following result on your terminal.

Get IP address using hostname command

These are all the methods you can use to find the network configuration of your computer. Enjoy!!

3 ways to find your local IP address in Debian 10

Sidebar