Every device on a network has a unique label called an IP address that enables communication and troubleshooting. Learning how to check IP address of a computer helps you diagnose connectivity issues, configure services, and verify network settings quickly.
Whether you are on Windows, macOS, or Linux, the right commands and tools reveal both local and public addresses in seconds without needing deep technical background.
| Operating System | Command or Path | Shows Local IP | Shows Public IP |
|---|---|---|---|
| Windows | Command Prompt: ipconfig | IPv4 Address under Ethernet or Wi-Fi | Browser search: what is my ip |
| macOS | Terminal: ifconfig or System Settings → Network | inet under en0 or en1 | Terminal: curl ifconfig.me or website lookup |
| Linux | Terminal: ip a or ifconfig | inet under eth0, enp0s3, or similar | Terminal: curl ifconfig.me or wget -qO- ifconfig.me |
| Mobile/Remote | Router admin page or network app | Device list with internal addresses | Same as public lookup from any device |
Using Command Line Tools to Locate Local IP
The command line provides the fastest and most reliable way to check IP address details directly from the operating system.
On Windows, opening Command Prompt and typing ipconfig reveals the IPv4 address, subnet mask, and default gateway in one view.
On macOS and Linux, launching Terminal and running ip a or ifconfig displays interface information, where the inet field shows the local IP assigned by your router or DHCP.
Finding Public IP Through Browser and Terminal
Your public IP is the address seen by websites and services outside your local network, which often differs from your internal machine address.
Open any browser and search what is my ip to instantly view your public address, ISP information, and approximate location.
Alternatively, use Terminal or Command Prompt with simple tools like curl ifconfig.me or curl ipinfo.io to retrieve the public IP in text form for scripts or quick checks.
Router Admin Interface for Full Network Overview
Logging into your router grants visibility into every connected device, including computer names, MAC addresses, and reserved static IP assignments.
Type the router default gateway, often 192.168.1.1 or 192.168.0.1, into a browser address bar, then sign in with admin credentials to access the device list.
From this interface you can see which IP is assigned to each machine, set port forwarding rules, and troubleshoot conflicts without relying solely on command output.
Troubleshooting Common IP Issues
Sometimes a computer shows an unexpected IP, such as a 169.x address, which indicates a DHCP failure and limited connectivity.
Renewing the DHCP lease with ipconfig /renew on Windows or sudo dhclient on Linux can restore proper addressing, while restarting the router refreshes the network pool.
Checking firewalls, cables, and Wi‑Fi settings alongside the IP values ensures you isolate the root cause rather than chasing unrelated symptoms.
Best Practices for Managing IP Settings
- Use DHCP for most home devices to simplify address management and avoid manual errors.
- Reserve static IPs in the router for printers, servers, and computers that host services.
- Document public and private addresses when setting up port forwarding or remote access.
- Check IP configuration after moving networks or changing routers to catch configuration drift.
- Back up router configurations so you can quickly restore reservation rules after firmware updates.
FAQ
Reader questions
Why does my computer show a 169.x IP address instead of a normal private IP?
Your device could not reach the router’s DHCP server, so it assigned itself a link-local address to indicate a problem with network configuration.
Can two computers in the same home have the same IP address?
Not under normal DHCP, because the router prevents direct conflicts, but manual static settings or lease issues can accidentally cause duplicates.
Is my public IP address the same every time I check it?
It may change if your ISP uses dynamic allocation, but many residential plans keep the same address for long periods unless the modem is rebooted or the lease expires.
How can I reserve a specific IP for my desktop in the router settings?
Use the router’s DHCP reservation or static lease feature, binding your desktop’s MAC address to a chosen IP inside the local network range.