How to check my IP address on Ubuntu 22.04 Jammy Jellyfish Linux

The objective of this tutorial is to learn how to identify internal and external IP address on Ubuntu 22.04 Jammy Jellyfish Linux. This can be accomplished via command line and GUI. We will cover the step by step instructions for both methods below.

In this tutorial you will learn:

  • How to check local internal IP address via command line and GUI
  • How to check external IP address via command line and GUI
How to check internal IP address on Ubuntu 22.04 Jammy Jellyfish Linux using ip command
How to check internal IP address on Ubuntu 22.04 Jammy Jellyfish Linux using ip command
Software Requirements and Linux Command Line Conventions
Category Requirements, Conventions or Software Version Used
System Ubuntu 22.04 Jammy Jellyfish
Software N/A
Other Privileged access to your Linux system as root or via the sudo command.
Conventions # – requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command
$ – requires given linux commands to be executed as a regular non-privileged user

How to check my IP address on Ubuntu 22.04 step by step instructions



How to check my internal IP address

  1. The first and easiest method on how to check the internal IP address is by using the ip command. To do so simply open a command line terminal and execute the following command:
    $ ip a
    

    Search the above ip command output and look for your network interface name and assigned IP address.

  2. For the GUI method, start in the systems Settings, then navigate to the Network tab and click the appropriate gear wheel icon of your network connection to reveal your internal IP address.
    Viewing internal IP address via GUI
    Viewing internal IP address via GUI

How to check my external IP address

  1. To check your external IP address first make sure that the curl command is installed. To do open the terminal window and execute the following:
    $ sudo apt update
    $ sudo apt install curl
    
  2. Once ready check your external IP address by entering the following command:
    $ curl -w "\n" -s https://api.ipify.org
    




If you need to check your external IP address via GUI, navigate to a site like IP Chicken or What Is My IP.

Closing Thoughts

In this tutorial, you saw how to check the internal and external IP addresses on Ubuntu 22.04 Jammy Jellyfish. Whether you are a command line user or you prefer the GUI, you can check your IP addresses very easily either way.