An IP address is a set of numbers that identifies your device on the internet, much like a mailing address identifies a physical location. Every time your computer connects to the internet, it gets assigned one of these numerical identifiers. Think of it as your device's location on the digital map—it tells websites, servers, and other devices where to send information back to you.
Free Guide to Canceling Your Ritual Subscription →
There are two main types of IP addresses you'll encounter. A public IP address is what the outside world sees when your device communicates online. This is the address your internet service provider (ISP) assigns to your home network or mobile connection. It's the one that websites log when you visit them. A private IP address, by contrast, only works within your local network—like the one assigned to your laptop when it connects to your home Wi-Fi router. This private address stays between your device and your router.
You might need to find your IP address for several practical reasons. Network troubleshooting often requires knowing your local IP address to diagnose connection problems or restart your router properly. If you're setting up port forwarding to run a game server or security camera from home, you'll need your private IP. Remote work sometimes demands sharing your IP with IT support staff. Online gaming occasionally requires checking your IP for latency issues. Some people track their public IP to monitor for unwanted access attempts or to understand their digital footprint.
The process differs slightly between Windows, Mac, and Linux operating systems, but the underlying concept remains the same—you're simply asking your system to reveal the numerical address it's currently using.
Practical takeaway: Knowing whether you need your public IP (visible to websites and the internet) or private IP (internal to your home network) will determine which method you use to find it.
Windows machines offer multiple pathways to locate both your public and private IP addresses. The most straightforward method uses the Command Prompt, a text-based tool built into Windows that communicates directly with your system's network settings.
Free Guide to Paying Your Austell Gas Bill →
To find your private IP address on Windows, open the Command Prompt by typing "cmd" into your search bar and selecting the Command Prompt application. Once the black window opens, type the command ipconfig and press Enter. Your screen will display a list of network information. Look for the line labeled "IPv4 Address"—the number you see there (typically starting with 192.168, 10.0, or 172.16) is your private IP address on your current network. You'll also see "Default Gateway" listed, which is usually your router's IP address.
Finding your public IP address—the one the internet sees—requires a different approach since Windows doesn't store this internally. Open any web browser and visit a site like whatismyipaddress.com or ipinfo.io. These websites automatically detect and display your public IP within seconds. No registration or interaction needed; the page simply shows your information when it loads.
A technical alternative exists for finding your public IP without leaving your computer. In Command Prompt, you can type nslookup myip.opendns.com resolver1.opendns.com and press Enter. This queries an external server and returns your public IP address in the result window. This method is particularly useful if you prefer not to visit external websites or if you're documenting network information in a script or batch file.
Windows also stores IP history and network details in the Settings application. Navigate to Settings > Network & Internet > Wi-Fi (or Ethernet, depending on your connection type), then click on your connected network name. The IP address section displays your current private IP, along with other technical details like your DNS server and subnet mask.
Practical takeaway: Use ipconfig in Command Prompt for your private IP, and visit an online IP-checking site for your public IP. Both methods take less than one minute.
Mac users have several intuitive options for discovering their IP addresses, many of which are more visually straightforward than Windows equivalents. The System Settings approach is the most user-friendly for most people.
The Complete Guide to Mars Travel Time →
For your private IP address, open System Settings (called System Preferences on older Macs) and navigate to Network. You'll see a list of connection types on the left side—select the one you're currently using, whether Wi-Fi or Ethernet. The window immediately displays your IP address labeled as "IPv4 Address." The information appears without requiring any additional steps or terminal commands. You'll also see your router's address (Default Gateway) and other network configuration details on this same screen.
Terminal provides an alternative method if you prefer the command-line approach. Open Terminal (found in Applications > Utilities folder) and type ifconfig, then press Enter. This displays comprehensive network information. Scan through the results until you find your active connection—usually labeled "en0" for Ethernet or "en1" for Wi-Fi on modern Macs. Look for the "inet" line, which shows your private IP address.
Finding your public IP on Mac works identically to Windows—visit any public IP-checking website like ipaddress.com or ip-lookup.net using your browser. These sites instantly display your public-facing IP address. Alternatively, Mac users can use Terminal to query this information. Type curl icanhazip.com and press Enter. This single command contacts an external server and returns your public IP address in the Terminal window, offering a completely offline method from within your operating system.
For users who frequently need this information, Mac allows you to add a network status icon to your menu bar. Go to System Settings > Control Center and enable Wi-Fi or Ethernet in the menu bar. Click this icon and select "Open Network Settings" for quick access to your IP information without opening System Settings from scratch each time.
Practical takeaway: Mac's System Settings makes finding your private IP visual and obvious; use Terminal's ifconfig command or websites for public IP discovery.
Linux systems are built around command-line tools, making IP discovery particularly efficient for Linux users. However, multiple tools exist depending on your Linux distribution and preferences.
Free Guide to Missouri Housing Vouchers →
The ip command is the modern standard across most Linux distributions. Open a terminal window and type ip addr show or the shorter version ip a, then press Enter. This displays all network interfaces on your system. Look for your active connection (typically named eth0 for Ethernet or wlan0 for Wi-Fi) and find the "inet" entry below it. The IP address you see there is your private IP. This command also shows your IPv6 address if your network uses it, along with detailed interface information.
The older ifconfig command still works on many Linux systems, though it's considered legacy on modern distributions. Type ifconfig and press Enter to see network interfaces displayed in a different format. Find your active connection and look for the line beginning with "inet addr" or "inet" to locate your private IP address. Both ip and ifconfig show information only for your local network—your private IP.
Linux users have the same options as other operating systems for finding their public IP. Visit any standard IP-checking website through your browser. Alternatively, use Terminal commands like curl ifconfig.me or wget -qO - icanhazip.com. These commands contact external services and return your public IP directly in your terminal without opening a browser window.
For users managing servers or working across multiple machines, Linux allows you to pipe IP information into text files or scripts for logging and monitoring. Type ip addr show > my_ip_info.txt to save your current network configuration to a file. This becomes useful if you're troubleshooting network issues over time and need to compare configurations from different dates.
Network managers with graphical interfaces exist on Linux desktop environments like Ubuntu, GNOME, and KDE. These provide visual representations of your network settings, including IP addresses, though command-line methods tend to be faster for most experienced users.
Practical takeaway: Use ip addr show on modern Linux systems for private IP, and terminal
This guide is for general information only and is not medical, financial, legal, or other professional advice. For decisions specific to your situation, consult a qualified professional. See our Editorial Policy.