To see what my ip address is, run system commands in the terminal or use online tools. Your device has both a public IP (assigned by your internet provider) and a local IP (used within your home or office network).
Every device connected to the internet has a unique identifier called an IP address. This number allows devices to send and receive data across networks. There are two types: public and private. Public IPs are visible to websites and services on the internet. Private IPs are used internally, such as between your router and devices like phones or laptops.
Knowing your IP address helps troubleshoot connectivity issues, set up remote access, or configure security settings. You can find your public IP through websites like whatismyip.com. Your private IP appears in system network settings or via command-line tools like ipconfig or ifconfig.
Your public IP address is assigned by your Internet Service Provider (ISP) and changes periodically unless you have a static plan. It identifies your network connection from outside the internet. Websites and online services use this number to route traffic to your location.
Your private IP address is assigned by your router using DHCP. It's used only within your local network. Devices like smartphones, computers, and smart TVs use these internal addresses to communicate with each other. Common private IP ranges include 192.168.x.x, 10.x.x.x, and 172.16.x.x to 172.31.x.x.
For example, if you're streaming video from a server, the request goes through your public IP. But once it reaches your home network, the router uses your private IP to deliver the stream to your TV. This dual-layer system keeps internal traffic secure while allowing external communication.
On Windows, open Command Prompt and type ipconfig. Look for "IPv4 Address" under your active network adapter. The value listed-such as 192.168.1.10-is your local IP. To find your public IP, visit a site like whatismyip.com.
On macOS or Linux, open Terminal and enter ifconfig (macOS) or ip a (Linux). Search for "inet" followed by a four-part number. For example, inet 192.168.1.15 shows your local IP. Use wget -qO- https://ipecho.net/plain to retrieve your public IP directly from the command line.
Mobile users can check their IP through network settings. On Android, go to Settings > Network & Internet > Wi-Fi, then tap your connected network. Scroll down to view the IP address. On iOS, go to Settings > Wi-Fi, tap the network name, and find the IP under "IP Address."
Many people think their public IP is the same as their private IP. They are not. Your private IP (like 192.168.1.10) is only valid inside your home network. Outside, your public IP (such as 203.0.113.45) is used.
Another mistake is assuming all IP addresses are static. Most residential connections use changing IPs, which change each time you reconnect. Some ISPs assign new public IPs every few days. If you need a consistent address for hosting a server, contact your ISP about a static IP option.
A lesser-known fact: your public IP may differ depending on wired connection. A smartphone on cellular data might show a different public IP than a laptop on Wi-Fi, even when connected to the same router.
Open Start Menu, search for "Command Prompt," and run it as administrator. Type ipconfig and press Enter. Scroll through the output until you see the active adapter-usually labeled "Ethernet adapter Local Area Connection" or "Wireless LAN adapter."
Under that section, locate "IPv4 Address." It will look like 192.168.1.10. That's your local IP. Now open a web browser and go to https://www.ipchicken.com/. The site displays your public IP address-something like 203.0.113.45.
This process takes less than a minute. It requires no software installation. You can repeat it anytime to verify if your IP changed after restarting your modem.
Use your public IP when setting up port forwarding for gaming, running a home server, or accessing a camera remotely. For example, if you want to view a security camera from work, you'll need the public IP of your home network.
I once helped a friend set up a home webcam. He couldn't access the feed from his phone. After confirming his public IP was correct and checking port forwarding rules, we discovered the router wasn't forwarding traffic properly. Knowing the IP addresses helped isolate the issue quickly.
| Type | Range | Used For | Visibility |
|---|---|---|---|
| Private IP | 192.168.x.x, 10.x.x.x, 172.16-31.x.x | Internal network communication | Only visible on your local network |
| Public IP | Any valid IPv4 address not in private ranges | Internet-facing services | Visible to websites and external devices |
Understanding the difference prevents misconfiguration. For instance, entering a private IP into a remote login form will fail because the service cannot reach it from outside the network.
Sharing your public IP address publicly can expose you to targeted attacks. Hackers use known IPs to probe for vulnerabilities. Avoid posting your public IP on forums or social media.
Some services offer IP masking through virtual private networks (VPNs). These tools replace your real public IP with one from a different location. If you're concerned about privacy, consider using a trusted VPN before connecting to public Wi-Fi.
For advanced users, firewall rules can restrict incoming connections based on IP. This limits who can access services like SSH or file sharing. Always verify your IP before enabling such features.
Knowing how to see what my ip address is gives control over network configuration and troubleshooting. diagnosing a slow connection, identifying both public and private IPs is essential.