How to check IP address in Ubuntu?

In Ubuntu system, we can view the IP address in the following ways:

  1. To find the IP address of a network interface, open a terminal and type the command “ifconfig”. For example, entering “ifconfig eth0” will give you the IP address of the eth0 interface.
  2. To find the IP address of a network interface, you can use the ‘ip’ command. Simply open the terminal and type ‘ip addr’ to locate the IP address. For instance, typing ‘ip addr show eth0’ will display the IP address of the eth0 interface.
  3. By using the hostname command: opening the terminal and entering the command hostname -I, you can obtain the IP address of the host.
  4. To access the Network Management tool: In the Ubuntu desktop environment, click on the network icon in the top right corner and select “Connection Information” or “Connection Settings” to view the IP address of the network interface.

Here are some common methods to view IP addresses, you can choose the most suitable method for yourself in different situations.

bannerAds