Find Your IP Address on Windows, Mac, or Linux
Understanding IP Addresses: What They Are and Why You Need to Find Yours An IP address is a unique number that identifies your computer or device on the inte...
Understanding IP Addresses: What They Are and Why You Need to Find Yours
An IP address is a unique number that identifies your computer or device on the internet. Think of it like a mailing address for your home—it tells other computers where to send information to reach you. Every device connected to the internet has an IP address, whether it's a laptop, desktop computer, tablet, or smartphone.
IP addresses serve several important purposes. When you visit a website, your device sends a request that includes your IP address so the website knows where to send the information back to you. Internet service providers (ISPs) use IP addresses to manage network traffic and ensure data reaches the right destination. Network administrators use IP addresses to troubleshoot connection problems and manage devices on a network.
There are two main types of IP addresses you should understand. Your public IP address is what websites and services on the internet see when you connect to them. This is the address assigned by your internet service provider. Your private IP address, also called a local IP address, is used only within your home or office network. This address is assigned by your router and allows devices to communicate with each other on your local network.
Knowing your IP address becomes useful in several situations. If you're having internet connection problems, your ISP may ask for your IP address to investigate. If you're setting up network devices like printers or security cameras, you may need to know your local IP address. Some online services ask for your IP address for security purposes. If you're running a server or hosting content, you need to know your public IP address so others can find your service.
Practical takeaway: Understanding the difference between your public and private IP addresses will help you know which one to look for depending on what you're trying to do. Write down both addresses and keep them in a safe place for future reference.
How to Find Your IP Address on Windows
Windows computers make it relatively straightforward to find your IP address using built-in tools. The most common method is using the Command Prompt, which is a text-based program on Windows that lets you type commands to get information about your computer and network.
To find your IP address on Windows, start by opening the Command Prompt. You can do this by clicking the Start menu, typing "cmd" in the search box, and pressing Enter. A black window will open with white text. Type the command "ipconfig" and press Enter. This command displays all network configuration information for your computer.
When you run the ipconfig command, you'll see several lines of information. Look for a section labeled with your network adapter name—this is often called "Ethernet adapter" if you're using a wired connection, or "Wireless LAN adapter" if you're using WiFi. Within that section, find the line that says "IPv4 Address" (or sometimes just "IP Address"). The number next to it, which will look something like 192.168.1.100 or 10.0.0.5, is your local IP address.
If you want to find your public IP address on Windows, you can use a different method. Open any web browser like Chrome, Firefox, or Edge, and visit a website that shows your public IP address, such as whatismyipaddress.com or ipinfo.io. These websites display your public IP address prominently on the page. Your public IP address will look similar to your private one but is assigned by your ISP and visible to the entire internet.
For users who prefer a graphical interface over Command Prompt, Windows also offers a Settings option. Go to Settings, click on "Network & Internet," then select "WiFi" or "Ethernet" depending on your connection type. Click on your connected network, and you'll see your local IP address listed under "Properties."
Practical takeaway: Bookmark a website that shows your public IP address so you can check it anytime without typing commands. Keep both your local and public IP addresses written down in case you need them for troubleshooting or setting up devices.
How to Find Your IP Address on Mac
Mac computers, which run the macOS operating system, store IP address information in their System Settings. Finding your IP address on a Mac is often faster than on Windows because the information is organized in a clear, graphical interface.
To find your local IP address on Mac, start by clicking the Apple menu in the top-left corner of your screen. Select "System Settings" (in newer versions of macOS) or "System Preferences" (in older versions). Look for a section called "Network." Click on it to open the network settings window.
In the Network window, you'll see a list of network connections on the left side. Select whichever network connection you're currently using—if you're connected by WiFi, click on "Wi-Fi," or if you're using an ethernet cable, click on "Ethernet." On the right side of the window, you'll see detailed information about your connection. Look for a line that says "IPv4 Address" or just "IP Address." The number displayed there, such as 192.168.0.15, is your local IP address.
Mac also provides another way to view this information through the Network Utility application. Click the Spotlight search icon (magnifying glass) in the top-right corner, type "Network Utility," and press Enter. Once the application opens, click on the "Info" tab, and your local IP address will be displayed in a field labeled "IP Address."
To find your public IP address on a Mac, just like on Windows, open a web browser and visit a site that displays this information, such as whatismyipaddress.com or ipinfo.io. Your public IP address will be shown immediately when the page loads. You can also open Terminal on your Mac and type "curl ifconfig.me" followed by pressing Enter, which will display only your public IP address in the terminal window.
Practical takeaway: Save your IP addresses to a note in the Notes app or to a document on your computer so you have them readily available. If you use both WiFi and ethernet connections on your Mac, note that each connection may have a different local IP address, so check the correct network type when looking for this information.
How to Find Your IP Address on Linux
Linux computers offer several methods to find your IP address, most of which involve using the terminal or command line. Linux users are often comfortable with terminal commands, and this method is often the quickest way to retrieve IP address information.
The most direct method on Linux is to use the hostname command combined with a specific option. Open your Terminal application (often found in Applications or by right-clicking on the desktop), and type "hostname -I" followed by pressing Enter. This command displays your local IP address immediately. If you're using a system that doesn't recognize this command, try typing "ip addr show" instead, which will display more detailed network information including your local IP address.
Another common Linux command for finding your IP address is "ifconfig," which stands for "interface configuration." Type "ifconfig" in the Terminal and press Enter. This command shows information about all network adapters on your system. Look for the adapter you're currently using—usually named "eth0" for ethernet or "wlan0" for WiFi. Next to or under that adapter name, you'll see "inet" or "inet addr" followed by your local IP address.
On newer Linux distributions, the "ip" command has become more standard than ifconfig. To use it, type "ip addr" or "ip addr show" in the Terminal and press Enter. This displays all network interfaces and their associated IP addresses in a clear, organized format. Look for your active connection and find the line starting with "inet" to see your local IP address.
Finding your public IP address on Linux works the same way as on other operating systems—open a web browser and visit a website that displays this information. Alternatively, you can use the Terminal with commands like "curl ifconfig.me" or "wget -qO- http://ipinfo.io" to display your public IP address directly in the terminal without opening a browser.
Practical takeaway: If you're new to Linux, start with the simple "hostname -I" command, which is often the easiest way to get your local IP address. Bookmark a command that works on your system so you can look up your IP address quickly whenever needed.
Understanding Different IP Address Formats and What They Mean
IP addresses follow specific formats and patterns that tell you important information about them
Related Guides
More guides on the way
Browse our full collection of free guides on topics that matter.
Browse All Guides →