Finding your IPv4 address is a practical step when setting up networks, troubleshooting connectivity, or managing devices. This guide walks you through reliable methods across different operating systems and environments.
Whether you are on Windows, macOS, Linux, iOS, or Android, the right combination of commands and settings reveals the local and public addresses assigned to your device.
| Operating System | Local IPv4 Method | Command or Path | Public IPv4 Method |
|---|---|---|---|
| Windows | Private LAN address | ipconfig in Command Prompt | Web search "What is my IP" |
| macOS | Private LAN address | System Settings or ifconfig in Terminal | Use any online IP checker |
| Linux | Private LAN address | ip addr or ifconfig in Terminal | Query from shell with curl |
| Mobile iOS/Android | Wi-Fi details in Settings | Tap network to see address | Mobile browser IP lookup |
Using Command Line Tools on Windows
On Windows systems, the fastest way to find your IPv4 address is through Command Prompt or PowerShell. These built in tools display detailed network configuration without installing additional software.
Open Command Prompt by searching for cmd or pressing Win + X and selecting Terminal. Then type ipconfig and press Enter to view the IP address assigned to your active adapter.
Look for the line labeled IPv4 Address under the connection you are using, such as Ethernet or Wi Fi. This number usually starts with 192.168, 10, or 172 and represents your local network address.
Using Command Line Tools on macOS and Linux
Mac and Linux users can rely on Terminal to retrieve the same information with slightly different commands. Modern systems favor ip addr, while older setups may still use ifconfig.
Open Terminal and run ip addr show to list all interfaces and their addresses. Identify your active interface, often named en0, en1, or eth0, and note the inet value next to it as your IPv4 address.
If ifconfig is available, you can use that as well, but ip addr is generally recommended on newer distributions and macOS for clearer output.
Finding IPv4 Through System Settings on GUI Devices
Not everyone is comfortable with the command line, so graphical interfaces provide an accessible alternative. You can find your IPv4 address in Settings without typing any commands.
On Windows, go to Settings > Network & Internet, click on your active connection, and look for the IPv4 address listed. On macOS, open System Settings > Network, select the service, and see the IP shown beside it.
On Android, navigate to Settings > Network & Internet > Mobile Network or Wi Fi, tap the connected network, and scroll to find the IP address. iOS users can visit Settings > Wi Fi, tap the info icon next to the network, and view the IPv4 address in the DNS section.
Checking Public and Private IPv4 Distinctions
Understanding the difference between private and public IPv4 addresses helps you interpret the numbers you see. The private address is used inside your local network, while the public address is assigned by your ISP and visible to the outside world.
Your router uses network address translation to allow multiple devices to share a single public IPv4 address, which is why commands like ipconfig show a different number than what websites report when you search "What is my IP".
When you need to allow remote access to a device, you often configure port forwarding on the router using the private IPv4 address and then forward traffic from the public address through specific ports.
Securing and Managing IPv4 Information
Once you know how to locate your IPv4 address, you can manage network access, set up services, and troubleshoot more effectively across devices and environments.
Keep track of static assignments, document your configuration, and use secure practices when exposing services to the internet to reduce unnecessary risk.
- Use ipconfig, ifconfig, or ip addr to locate the local IPv4 address quickly.
- Check your router or gateway settings to manage DHCP reservations and port forwarding.
- Remember that local and public IPv4 addresses differ, especially for remote access scenarios.
- Verify connectivity with ping and traceroute after making network changes.
- Document static IP assignments to prevent conflicts on busy networks.
FAQ
Reader questions
Why does my ipconfig or ifconfig output not show an IPv4 address?
This usually happens when the network adapter is disabled, the cable is unplugged, or the device failed to obtain an address from the router. Restarting the adapter or running the router's DHCP client can resolve it.
Can I find the IPv4 address from my phone without opening Settings?
You can add an IP widget on supported home screens or ask a voice assistant for the current IP on smart devices, though Settings remains the most direct and reliable method.
Is the IPv4 address shown in Settings the same as the one other devices see online?
No, the number in Settings is your local private address, while websites and services see the public IPv4 address assigned to your router by the internet service provider.
How can I verify that my IPv4 configuration is correct after changes?
Run a ping to the router IP and to a reliable site, check that the Subnet Mask and Default Gateway match your network, and confirm that you can browse to confirm connectivity.