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
|Category||Requirements, Conventions or Software Version Used|
|System||Ubuntu 22.04 Jammy Jellyfish|
|Other||Privileged access to your Linux system as root or via the
# – requires given linux commands to be executed with root privileges either directly as a root user or by use of
$ – 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
- The first and easiest method on how to check the internal IP address is by using the
ipcommand. To do so simply open a command line terminal and execute the following command:
$ ip a
Search the above
ipcommand output and look for your network interface name and assigned IP address.
- For the GUI method, start in the systems
Settings, then navigate to the
Networktab and click the appropriate gear wheel icon of your network connection to reveal your internal IP address.
How to check my external IP address
- To check your external IP address first make sure that the
curlcommand is installed. To do open the terminal window and execute the following:
$ sudo apt update $ sudo apt install curl
- 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.
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.