Your IP address is a unique identifier assigned to your device on a network. It enables communication between devices over the internet or local networks. You can find out what your IP is using built-in system tools, online services, or network management interfaces.
An IP address consists of numbers separated by periods (e.g., 192.168.1.10). There are two main types: IPv4 and IPv6. IPv4 uses four sets of numbers ranging from 0 to 255. IPv6 uses eight groups of four hexadecimal digits, such as 2001:0db8:85a3:0000:0000:8a2e:0370:7334.
Public IPs are assigned by your internet service provider (ISP) and are visible to websites and services on the internet. Private IPs are used internally within home or office networks and are not accessible from the wider web.
For example, when you visit a website, your browser sends your public IP to the server. The server logs this to track traffic patterns and enforce access rules. If you're troubleshooting connectivity issues, knowing both your public and private IP helps isolate problems.
Use the following methods depending on whether you need your public or private IP.
ipconfig. Look for "IPv4 Address" under your active network adapter.ifconfig | grep "inet ". Filter for lines containing "inet" and skip addresses starting with 127.0.0.1.hostname -I in the terminal. This returns all assigned IPv4 addresses.For your public IP, visit a site like whatismyipaddress.com or use a command like wget -qO- https://api.ipify.org in Linux.
Private IPs are used within local networks. They are not routable on the internet. Common ranges include 192.168.x.x, 10.x.x.x, and 172.16.x.x to 172.31.x.x. These are assigned automatically by routers via DHCP.
Public IPs are globally unique and assigned by ISPs. They change dynamically unless you have a static IP plan. For example, a residential broadband connection typically receives a changing public IP from the ISP's pool.
Understanding this distinction matters when diagnosing network issues. If a device can't reach the internet, checking the public IP confirms whether the router has an active internet connection. A missing public IP suggests a problem with the ISP or modem.
Suppose a user reports that their smart TV won't stream video. The issue may stem from incorrect network configuration. Begin by confirming the TV's IP address.
On a Windows PC connected to the same network, open Command Prompt and run arp -a. This lists all devices on the local subnet. Look for the TV's MAC address (found on the device label) and match it to an IP.
If the TV shows up as 192.168.1.15, test connectivity with ping 192.168.1.15. If the ping fails, the device may be offline or firewall settings are blocking ICMP.
Next, verify the router's public IP. Visit whatismyipaddress.com from a computer on the same network. If the site shows a valid public IP, the internet connection is working. If it shows "No Internet," the issue lies with the ISP or modem.
Many users think their public IP changes every time they restart their router. This is false. Most ISPs assign changing IPs, but they often reuse the same address for days or weeks. A change only occurs when the lease expires or the router reconnects after a power cycle.
Another misconception: using a public IP to identify a specific person. Public IPs do not reveal personal identity. They only show geographic location approximations based on ISP databases. For example, a public IP from Comcast in New York City may show as "New York, NY" but not the user's name or physical address.
Some believe that changing your public IP fixes slow internet speeds. This is rarely true. Speed depends on bandwidth, latency, and congestion-not the IP itself. If performance drops, contact your ISP or run a speed test using speedtest.net.
To trace the path from your device to a remote server, use traceroute (Windows: tracert). This shows each hop along the route and can show delays or packet loss.
| Device Type | Find Private IP | Find Public IP |
|---|---|---|
| Windows PC | Run ipconfig |
Visit whatismyipaddress.com |
| macOS | Run ifconfig and filter for "inet" |
Use curl ifconfig.me in Terminal |
| Linux | Run hostname -I |
Use wget -qO- https://api.ipify.org |
| Smartphone | Settings > Wi-Fi > Network Details | Open browser and go to whatismyipaddress.com |
Knowing how to find out what your IP is empowers you to diagnose network issues, set up port forwarding, or troubleshoot device connectivity. setting up remote access, accurate IP information is essential.