Don’t know how to find your IP address on Ubuntu 24.04? Let’s see different approaches to do so.
Table of Contents
How to Find Your IP Address on Ubuntu 24.04?
There exist several approaches to finding the IP address on Ubuntu 24.04. Let’s check them!
Method 1: Checking the Hostname
You can get to your IP address by simply executing this command:
hostname -I
Method 2: Using the ip Command
This command will provide you with details about the network interfaces available on your system, along with the IP address:
ip a
Method 3: Using the nmcli Command
This command will show device details including the IP address:
nmcli device show
How to Find External IP Address on Ubuntu 24.04?
If you want to know your external IP address then, you can run either of these two commands:
curl ifconfig.me
wget -qO- ifconfig.me
I’m a professional technical content writer who has 4+ years of experience with different operating systems, programming languages, GUI-based apps, IT, and technology in general.