Your Guide to How To View Ip Address In Linux
What You Get:
Free Guide
Free, helpful information about Internet & Networking and related How To View Ip Address In Linux topics.
Helpful Information
Get clear and easy-to-understand details about How To View Ip Address In Linux topics and resources.
Personalized Offers
Answer a few optional questions to receive offers or information related to Internet & Networking. The survey is optional and not required to access your free guide.
How to View Your IP Address in Linux
Knowing your IP address in Linux isn't just a sysadmin task — it's something anyone running a Linux machine will eventually need to do, whether for troubleshooting a network issue, configuring a server, or setting up remote access. The good news: Linux gives you multiple reliable ways to find it. The less obvious part is knowing which IP address you're looking for, and which tool gives you the most accurate picture of your setup.
What "IP Address" Actually Means on a Linux System
Before running any command, it helps to understand that your Linux machine likely has more than one IP address — and they're not interchangeable.
- Loopback address (127.0.0.1): This is the address your system uses to talk to itself. You'll always see it, and it's never your real network address.
- Private (local) IP address: This is the address assigned to your machine within your local network — by your router or DHCP server. It's what other devices on the same network use to reach you.
- Public IP address: This is the address the wider internet sees. It belongs to your router, not your machine directly, and you won't find it with a local terminal command alone.
Most people asking "how do I find my IP address in Linux" want the private IP — the one assigned to their network interface (Ethernet or Wi-Fi).
The Modern Method: ip Command 🖥️
The ip command is the current standard on most Linux distributions, replacing the older ifconfig tool that has been deprecated for years.
To view your IP address, open a terminal and run: