Finding the IP address of a computer takes less than a minute once you know which command or menu to use. Every device connected to a local network or the internet has a unique numerical identifier that lets routers send data to the right place. Whether you're troubleshooting a dropped Wi-Fi connection, setting up a network printer, or configuring a local file share, you'll need this address fast.
Your computer actually has two different types of IP addresses: a private IP address used inside your home or office network, and a public IP address that websites and external services see. Below are the precise steps to find both types across Windows, macOS, and Linux without getting bogged down by network jargon.
Finding Your Private IP Address on Windows
Windows gives you multiple built-in ways to check your local network settings. The fastest route is through the terminal, but the graphical settings app works well if you prefer clicking through menus.
Using Command Prompt
- Press the Windows Key and type
cmd, then hit Enter to open the Command Prompt. - Type
ipconfigand press Enter. - Look through the output list for your active connection, usually labeled as Ethernet adapter or Wireless LAN adapter Wi-Fi.
- Find the line reading IPv4 Address. It typically starts with
192.168.x.xor10.x.x.x.
For more granular details, such as physical MAC addresses and DNS server entries, type ipconfig /all instead. If you want more about the history here, Associated Press provides an informative summary.
Using the Settings App
If you prefer avoiding the command line entirely, Windows settings expose your network details in a few clicks:
- Open the Start menu and click Settings (the gear icon).
- Navigate to Network & internet and select either Wi-Fi or Ethernet depending on how you're connected.
- Click on the active network profile name at the top of the menu.
- Scroll down to the Properties section where you'll see your IPv4 and IPv6 addresses listed clearly alongside your router's gateway address.
Finding Your Private IP Address on macOS
Apple keeps network configurations tucked away inside System Settings, though power users can still pull up a quick terminal command.
Using the Terminal App
- Press Command + Spacebar to open Spotlight, type
Terminal, and press Enter. - Type
ipconfig getifaddr en0for Wi-Fi (oren1on older hardware) and press Enter. - Your local IPv4 address will appear instantly on the next line.
Alternatively, you can type ifconfig to see every network interface on your machine, though that generates a much longer list of data.
Using System Settings
- Click the Apple logo in the top left corner of your screen and open System Settings.
- Click Wi-Fi or Network in the sidebar, then click Details next to your active connection.
- Look for your IP Address listed right under the network status indicators.
Finding Your Private IP Address on Linux
Linux distributions vary in interface design, but the underlying terminal tools remain consistent across almost every major distro like Ubuntu, Fedora, or Debian.
- Open your terminal application (Ctrl + Alt + T on most systems).
- Type
ip addr showor the legacy commandifconfigand press Enter. - Locate your active network interface, usually named
eth0,enp3s0, orwlan0. - Look for the
inetentry associated with that interface to find your local address.
If you are running a desktop environment, you can also click the network icon in your system tray, open connection settings, and view the IPv4 details directly in the interface panel.
Finding Your Public IP Address
Your router translates your private local address into a public IP address when communicating with servers outside your home network. Because your internet service provider assigns this address to your modem or router rather than your individual PC, checking your local settings won't show it.
To find your public IP address quickly:
- Open any web browser on your computer.
- Visit a trusted network utility site like Cloudflare Diagnostics or search for "what is my IP" on a secure search engine.
- The page will display the public IPv4 or IPv6 address assigned to your household or office network.
Keep in mind that unless you pay your provider for a static IP address, your public IP address will occasionally change when your router restarts or your ISP refreshes its lease.
Common Mistakes and Troubleshooting
Finding an IP address is usually straightforward, but a few common slip-ups can cause confusion during troubleshooting.
- Confusing local and public addresses: If you try to log into a local printer or network storage drive using your public IP address, the connection will fail. Always use your private network address for internal device communication.
- Checking the wrong adapter: Modern laptops often have both an active Wi-Fi card and an inactive Ethernet port. Make sure you are reading the numbers from the connection you are actively using.
- VPN interference: If you are running a virtual private network client, your reported public IP address will belong to the VPN server rather than your actual internet provider. Turn off your VPN temporarily if you need to check your true connection details.
Frequently Asked Questions
What is the difference between an IPv4 and an IPv6 address?
IPv4 addresses use a 32-bit numeric format separated by periods (like 192.168.1.5), which can only support around 4.3 billion unique devices. IPv6 uses a 128-bit alphanumeric format separated by colons to accommodate the massive growth of internet-connected hardware worldwide.
Why does my computer's IP address change?
Most home routers use the Dynamic Host Configuration Protocol (DHCP) to assign IP addresses automatically from a pool of available numbers. When your computer reconnects to the network, it may receive a different address than it had previously.
Can I set a static IP address for my computer?
Yes. You can configure a static or manual IP address directly inside your operating system's network adapter properties or by setting up a DHCP reservation inside your home router's admin panel. This is helpful if you host local game servers or share files regularly.
Is my IP address a security risk?
Knowing your public IP address doesn't give strangers direct access to your files, but it can reveal your general geographic location and internet service provider. Most home users don't need to worry about dynamic public addresses, as firewalls on modern routers block unsolicited incoming traffic by default.