Showing your IP address means revealing your unique numerical identifier on a network, either your public IP assigned by your internet service provider or your private IP assigned by your local router. This identifier enables devices to send and receive data across networks.
Your public IP address is visible to websites and services on the internet. It changes when you disconnect and reconnect to the internet unless you have a static connection. Your private IP address is used within your home or office network and remains constant during a session unless reassigned by DHCP.
To show your IP address, use system commands like ipconfig on Windows or ifconfig on macOS and Linux. For your public IP, visit a site like ifconfig.me or run curl ifconfig.me in a terminal. These methods return your external-facing address.
When you ask "show me my ip address," the system checks multiple layers of networking configuration. The process begins with your device's network interface card (NIC), which receives a local IP address via DHCP from your router. This address operates within the private subnet range-typically 192.168.x.x, 10.x.x.x, or 172.16.x.x to 172.31.x.x.
For external visibility, your router uses Network Address Translation (NAT) to map your internal private IP to a single public IP. This public IP is assigned by your ISP and appears on external servers when you browse the web. Services like whatismyipaddress.com detect this public IP by analyzing incoming HTTP headers or DNS queries.
Running curl ifconfig.me in a terminal sends a request to a public server that logs the source IP. The response returns only the public IP, stripping away any internal routing details. This method bypasses browser-based detection and avoids tracking scripts.
There are two distinct types of IP addresses tied to your device: public and private. Each serves a different purpose in network communication.
| Type | Range | Use Case | Example |
|---|---|---|---|
| Private IP | 192.168.1.100, 10.0.0.5 | Internal network communication | Device on home Wi-Fi |
| Public IP | 203.0.113.45 | Internet-facing access | Website sees your ISP-assigned address |
Private IPs are not routable on the global internet. They're reserved for internal use under RFC 1918. Public IPs are globally unique and assigned by regional registries like ARIN or RIPE NCC. A single public IP may serve hundreds of private devices behind NAT.
Some systems display both addresses simultaneously. On macOS, running networksetup -getinfo Wi-Fi shows the current IPv4 address and router gateway. On Linux, ip addr show lists all interfaces and their assigned IPs.
Many users assume their public IP is fixed. That's incorrect. Most residential connections use changing IP assignment. Your public IP can change after a router reboot or when your ISP reallocates addresses due to pool exhaustion.
Another misconception is that your public IP identifies your physical location. While geolocation databases can estimate a city or region based on IP ranges, accuracy varies. A public IP in New York City might route through a data center in Virginia due to ISP peering agreements.
Some tools claim to "hide" your IP. These often use proxies or virtual private networks (VPNs). However, simply asking "show me my ip address" will still reveal the original public IP unless the traffic is routed through an intermediary. Always verify results using multiple sources.
I once helped a friend troubleshoot a game server setup. He couldn't connect to his own server from outside his home network. Running ipconfig showed his private IP was 192.168.1.15. But when he visited ifconfig.me, the result was 203.0.113.45-a public IP assigned by his ISP.
He then checked port forwarding settings on his router. The rule mapped external port 25565 to internal IP 192.168.1.15. Without knowing his public IP, he couldn't set up the correct external connection. Once he confirmed the public IP matched the one in his router's admin panel, the connection succeeded.
This case illustrates why distinguishing between private and public IP matters. Asking "show me my ip address" without specifying which one leads to errors in configuration.