🥝GuideKiwi
Free Guide

Find Your IP Address On Windows Mac And Linux

Understanding What an IP Address Is and Why You Might Need It An IP address is a numerical label assigned to every device that connects to the internet. Thin...

GuideKiwi Editorial Team·

Understanding What an IP Address Is and Why You Might Need It

An IP address is a numerical label assigned to every device that connects to the internet. Think of it like a mailing address for your computer—it tells other computers and servers on the internet where to send information so it reaches your machine specifically. IP addresses follow a standard format of four numbers separated by periods, such as 192.168.1.5 or 8.8.8.8. Each number can range from 0 to 255, creating billions of possible combinations.

There are two main types of IP addresses you should understand. Your public IP address is what websites and internet services see when you connect to them—this is assigned by your internet service provider and can change over time. Your private IP address exists on your local network and is used for communication between your computer, router, and other devices in your home or office. Private IP addresses typically start with 192.168, 10.0, or 172.16 and are only visible to devices on your same network.

You might need to know your IP address for several practical reasons. Network troubleshooting often requires identifying your IP to diagnose connection problems. Remote access to your computer requires knowing its address. Online gaming sometimes needs your IP for server connections. Setting up port forwarding on your router requires your local IP address. Technical support staff may request your IP when helping with internet or connectivity issues.

Knowing how to locate this information is a basic computer skill that takes only a few minutes to learn. The process differs slightly between Windows, Mac, and Linux operating systems, but the underlying concept remains the same—you're accessing your system's network settings to view assigned addresses.

Practical takeaway: Before you start, consider whether you need your public IP (what the internet sees) or your private IP (your local network address). Most local troubleshooting uses your private IP, while some online services request your public IP.

Finding Your IP Address on Windows Operating Systems

Windows computers offer multiple straightforward methods to locate your IP address. The most direct approach uses the Command Prompt application, which is a text-based interface for system commands. To access it, click the Start button, type "cmd" or "command prompt" in the search box, and press Enter. A black window will appear where you can type commands.

Once Command Prompt is open, type the command "ipconfig" and press Enter. Your computer will display a list of network information. Look for "IPv4 Address" under your active network connection—this is typically shown as a series of four numbers separated by periods. For example, you might see something like "IPv4 Address: 192.168.1.50." This is your private IP address on your local network. If you're connected to Wi-Fi, look under the "Wireless LAN adapter" section. If you're using an ethernet cable, check under "Ethernet adapter."

For your public IP address as seen by the internet, you can use a different command in the same Command Prompt window. Type "nslookup myip.opendns.com resolver1.opendns.com" and press Enter. This will display your public IP address provided by your internet service provider. Alternatively, you can simply open a web browser and search "what is my IP" or visit websites dedicated to displaying this information.

Another Windows method uses the Settings application for those who prefer graphical interfaces over commands. Navigate to Settings, then select "Network & Internet." Click on "Wi-Fi" if you're using wireless, or "Ethernet" if you're using a wired connection. Your private IP address appears under "Properties" as "IPv4 address." This method is useful if you're less comfortable with Command Prompt.

Windows 10 and Windows 11 users can also right-click the network icon in the system tray (bottom right corner of the taskbar) and select "Open Network & Internet settings" to reach the same information quickly. Network settings in Windows typically also show your gateway address (usually your router) and DNS servers, which may be useful reference information during troubleshooting.

Practical takeaway: Save a screenshot or note of your IP address for future reference. If you need to report network issues to technical support, having this information readily available speeds up the troubleshooting process.

Finding Your IP Address on Mac Operating Systems

Mac computers use a different interface than Windows but provide equally simple methods for finding IP address information. The System Preferences (or System Settings in newer macOS versions) application is the primary location for this data. Click the Apple menu in the top-left corner of your screen and select "System Preferences" or "System Settings" depending on your macOS version. Then look for "Network" in the list of options.

In the Network preferences window, you'll see a list of network connections on the left side. Select "Wi-Fi" if you're using wireless internet, or "Ethernet" if you're using a wired connection. Once selected, your private IP address displays prominently in the main window, typically labeled as "IPv4 Address." The format looks similar to Windows—four numbers separated by periods, such as 192.168.0.25. Near the IP address, you'll also see related information like your subnet mask and router address.

For those comfortable using Terminal (Mac's text-based command interface), another method exists. Open Terminal by going to Applications, then Utilities, then double-clicking Terminal. Type "ifconfig" and press Enter. This displays detailed network information. Find the section labeled "inet" which shows your private IP address. For your public IP address, you can type "curl ifconfig.me" or "dig +short myip.opendns.com @resolver1.opendns.com" in Terminal to retrieve this information directly.

Mac also provides a quick menu access option. Click the Wi-Fi icon in the menu bar (top of screen) and hold down the Option key while clicking it. A menu appears showing your network name and additional network details. While this method doesn't always display the full IP address, it provides quick access to your network status.

Newer Mac models with Apple Silicon chips (M1, M2, and later) use the same methods as Intel-based Macs—the process hasn't changed, though the System Settings appearance is slightly updated. Whether you have an older MacBook Pro, a Mac Mini, or a newer Apple Silicon machine, these instructions apply to your system.

Practical takeaway: The Network settings in Mac also show your DNS servers and DHCP lease information. If you're experiencing DNS-related issues, this information helps diagnose problems or discuss them with technical support.

Finding Your IP Address on Linux Operating Systems

Linux systems offer several methods for locating IP address information, with command-line approaches being the most common. Linux users typically have experience using Terminal, so accessing this information is straightforward. Open a Terminal window through your distribution's application menu or by pressing Ctrl+Alt+T on most desktop environments. Once Terminal is open, type "hostname -I" and press Enter. This displays your private IP address immediately—usually showing one or more addresses depending on your network configuration.

Another widely-used Linux command is "ifconfig," similar to the Mac equivalent. Type "ifconfig" and press Terminal will display detailed network interface information. Look for "inet" entries—these show your private IP addresses assigned to each network interface. You might see multiple entries if your computer has multiple network connections (Wi-Fi, ethernet, virtual networks, etc.). The address you're looking for typically starts with 192.168, 10.0, or 172.16 ranges.

The "ip addr show" command provides the same information in a slightly different format and is considered the modern replacement for ifconfig on many Linux distributions. Type "ip addr show" and review the output. Each network interface is listed with its associated IP addresses. The loopback address (127.0.0.1) represents your computer talking to itself and isn't useful for network connectivity.

For discovering your public IP address on Linux, several command-line options work efficiently. Type "curl ifconfig.me" to fetch your public IP from an online service. Alternatively, "dig +short myip.opendns.com @resolver1.opendns.com" queries OpenDNS servers for your public address. These commands work on any Linux system with internet connectivity and curl or dig utilities installed.

Different Linux distributions may display network information slightly differently based on their desktop environments and included utilities. Ubuntu users might also access this through graphical Settings applications similar to Windows and Mac

🥝

More guides on the way

Browse our full collection of free guides on topics that matter.

Browse All Guides →