An IP address is a unique string of numbers separated by periods that identifies devices on a network. To find your computer's IP address, use command-line tools like ipconfig (Windows) or ifconfig (macOS/Linux).
IP addresses function as identifiers for devices within networks, allowing them to communicate. They come in two main types: IPv4 (32-bit) and IPv6 (128-bit). Most home networks use IPv4 addresses, which look like 192.168.1.1.
| Type | Range | Usage |
|---|---|---|
| Public IP | Assigned by ISP | Identifies your network to the internet |
| Private IP | 10.0.0.0 - 10.255.255.255 172.16.0.0 - 172.31.255.255 192.168.0.0 - 192.168.255.255 |
Used within local networks |
| Static IP | Manually assigned | For servers and devices needing consistent access |
| Changing IP | Assigned by DHCP | Most common for home devices |
IP addresses enable communication between devices on networks. Your computer's IP address helps route data to the correct destination. When you visit a website, your computer's IP address tells the server where to send the response.
Most home networks use private IP addresses for internal devices, while the router uses a public IP address to communicate with the internet. This creates a translation layer where the router maps private IPs to the public IP.
Many people confuse their computer's IP address with their public IP address. Your computer's IP address is typically a private address assigned by your router, while your public IP address is assigned by your internet service provider. The public IP is what websites see when you connect to them.
Another misconception is that IP addresses reveal personal information. While they show approximate geographic locations, they don't provide specific personal details. For more on this, see why your IP address changes.
To find your computer's IP address on Windows, open Command Prompt and type ipconfig. Look for the line that says "IPv4 Address." On macOS, open Terminal and type ifconfig. Look for the section labeled "en0" or "en1" for Wi-Fi connections.
Once you have your computer's IP address, you can use it for various purposes. For example, you can set up port forwarding to access devices on your network from outside. You can also troubleshoot network issues by checking if your IP address is conflicting with other devices.
For more ideas, see what to do with an IP address.