Your Guide to How To Find Out Ip Address In Linux
What You Get:
Free Guide
Free, helpful information about Internet & Networking and related How To Find Out Ip Address In Linux topics.
Helpful Information
Get clear and easy-to-understand details about How To Find Out 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 Find Your IP Address in Linux
Knowing your IP address in Linux is one of those fundamental networking tasks that comes up constantly — whether you're setting up a server, troubleshooting a connection, or configuring remote access. The good news is that Linux gives you multiple ways to find this information, each suited to slightly different situations and skill levels.
What "IP Address" Actually Means in This Context
Before running any commands, it's worth being clear about which IP address you're looking for — because your Linux system likely has more than one.
- Private (local) IP address — the address assigned to your machine on your local network (home, office, or data center LAN). This is what other devices on the same network use to reach you.
- Public (external) IP address — the address the wider internet sees when your traffic leaves your router. This is assigned by your ISP, not your machine.
- Loopback address — always 127.0.0.1, used internally by the system itself. Not useful for networking with other devices.
Most Linux commands show you the private IP address. Getting your public IP requires a different approach.
The Modern Way: Using ip addr 🖥️
The ip command is the current standard tool for network configuration on Linux. It replaced the older ifconfig command on most modern distributions (Ubuntu 18.04+, Fedora, Debian 10+, etc.).
To display all network interfaces and their assigned addresses: