How to check the IP address of Ubuntu?

To check the IP address of Ubuntu, you can use the following command:

  1. Using the ifconfig command:
  2. Show me the current network interfaces.
  3. This will display information about all the network interfaces, including IP addresses.
  4. Utilize the “ip addr” command:
  5. What is your IP address?
  6. This will display information for all network interfaces, including IP addresses.
  7. Employ the command hostname -I:
  8. What is my hostname’s IP address?
  9. This will display the IP address of the host.
  10. Use the nmcli command (only applicable for systems using NetworkManager):
  11. Display active network connections with nmcli.
  12. This will display information for all active connections, including IP addresses.

Regardless of the method used, it will display the IP address related to the network interface on the Ubuntu system.

bannerAds