What is my private IP address?

Your private IP address (also known as internal IP, intranet IP, or local IP) is the IP address that identifies your device on your local network (LAN). This address is not used on the Internet and, as a rule, is not transmitted outside of your LAN.

However, even if this IP address should remain private, there are some techniques allowing remote webpages to find your private IP address. For example, this webpage uses WebRTC to open a peer-to-peer connection and extract your private IP address. This does not work in all browsers, as some do not support WebRTC, and some care about the users’ safety. In any case, you should be happy if your private IP cannot be detected.

What is my router IP address?

Your router IP address is the IP address of a device that helps devices on your (internal) network to communicate with devices from another (external) network. By and large, forwarding data packets between networks is the main function of your router, although, most home routers, in addition to it, support various functions such as Firewall, Parental Control, Wireless Access Point, Dynamic Domain Name System, and other useful built-in features.

As a rule, most routers are providing a web interface allowing users to configure the router. And apparently, most users who are trying to find the router IP actually want to find the address where they can configure the router. If you are looking for this too, this tool can help you. Although, most often the router IP address is the same as default gateway. Also, the IP address is specified in the documentation of the router.

How to find my private IP address?

If the tool above did not detect your private IP, you can find it manually. Just select your OS and convient way below. Of course, only methods that do not require additional setup or software installation are presented here.

Find private IP address on Android

It would seem that the mobile operating system may be scarce in settings, but Android proves the opposite. For example, it supports various ways to find your private IP address.

Network

This is perhaps the most obvious way to find a private IP on Android. But even if many users found it themselves, this does not mean that you do not need to specify it here.

  1. Expand the Android status bar.
  2. Touch and hold on Wi-Fi icon until it opens the networks list.
  3. Open your network settings to see “Network Details”.
  4. Tap “Advanced” and you’ll see your private IP address:
    Find private IP address using Android Network Details

Search

This is most likely one of the fastest ways to find the private IP on Android. The only problem is that not all phones support it (for example, old smartphones or modified firmwares).

  1. Open phone settings.
  2. Type “ip” in the settings search box.
  3. Tap on the “IP address (System > About phone)”.
  4. As a result OS will highlight your IP address:
    Find private IP address using Android Search

About Phone

Another obvious way to find the private IP on Android, but it is less convenient and not even supported by all smartphones. However, in some cases this may be useful to know.

  1. Go to Settings → System → Advanced → About Phone.
  2. Slide down and you’ll see your private IP:
    Find private IP address using About Android Phone

Testing Menu

A rather complicated way to find the private IP on Android, but at the same time is very useful to know because this way you can find out more information about your smartphone. Definitely it will be a favorite way for those who love puzzles and secrets.

  1. Dial the code *#*#4636#*#* on your dialer app.
  2. Tap Wi-Fi information, then choose Wi-Fi Status.
  3. Press the “Refresh Stats” button.
  4. As a result you’ll get technical information about your network connection:
    Find private IP address using Android Testing Menu

Find private IP address on Linux

By and large, operating systems of the Linux family are focused on solving technical tasks. And although finding the private IP address is just a grain of sand in the desert, it takes pride of place in this list of tasks. Even if Linux provides a huge number of ways to find out the private IP, I’ll only describe a few of them.

Console

As a Linux user, you have probably already made friends with the terminal and now it’s time to learn how to use it to find your private IP address. The following methods are suitable for most Linux distributions. By the way, to copy something from the console output, highlight text you want to copy and press Ctrl+Shift+C.

hostname

  1. Launch your terminal.
  2. Type command hostname -I and press Enter.
  3. As a result you’ll see your private IP:
    Find private address using the Linux “hostname” command

ip route

  1. Launch your terminal.
  2. Type command ip route get 1 and press Enter.
  3. As a result you’ll see your private IP among the routing details:
    Find private address using the Linux “ip route” command
Hints
  • You can extract IP by executing the ip route get 1 | awk '{print $NF;exit}' command.
  • The command ip route has several aliases:
    • ip r
    • ip route
    • ip r list
    • ip route list

ifconfig

  1. Launch your terminal.
  2. Type command ifconfig and press Enter.
  3. As a result you’ll see your private IP among the network interface configuration:
    Find private address using the Linux “ifconfig” command
Hints
  • You can extract IP by executing the ifconfig | grep -oP '(?<=inet addr:)\S+(?=.*)' command.

ip addr

  1. Launch your terminal.
  2. Type command ip addr and press Enter.
  3. As a result you’ll see your private IP among the network technical details:
    Find private address using the Linux “ip addr” command
Hints
  • You can extract IP by executing the ip addr | grep -oP '(?<=inet )[^\s/]+(?=.*)' command.
  • The command ip addr has several aliases:
    • ip a
    • ip addr
    • ip a show
    • ip address
    • ip addr show
    • ip address show

Find private IP address on Ubuntu

Ubuntu is a Linux-based operating system for personal computers, servers, and netbooks. In addition to the console, it provides several additional ways to find your private IP address. Please check the “Console” instructions to get more methods about how to find your private IP, because there are only a few ways specific to Ubuntu.

Connection Information

  1. Click network arrows icon on the system tray.
  2. Choose the “Connection Information” option.
  3. Your private IP is displyed next to the “IP Address” label within “IPv4” group:
    Find private IP address using Ubuntu Connection Information

System Settings

  1. Open “System settings”.
  2. Go to the “Network” panel.
  3. Your private IP is displyed next to the “IPv4 Address” label:
    Find private IP address using Ubuntu System Settings
Hints
  • You can open “Network” panel by typing “network” or “ip” in the “Search your computer” box.

Find private IP address on Mac

macOS has an excellent reputation among designers, but this does not mean that Apple has forgotten about technical geeks. For example, this operating system provides various ways to find your private IP address.

Network Preferences

  1. Open “System Preferences” and click “Network”.
  2. Your private IP is displyed next to the “IP Address” label.
    Find private IP address using Mac Network Preferences

System Information

  1. Launch “Utilities” by pressing Cmd+U.
  2. Open the “System Information” app.
  3. Scroll down and click “Network”.
  4. Your private IP is displyed next to the “IPv4 Addresses” label:
    Find private IP address using Mac System Information

Terminal

ipconfig

  1. Launch “Utilities” by pressing Cmd+U.
  2. Open the “Terminal”.
  3. Type ipconfig getifaddr en0 and press Enter.
  4. As a result you’ll see your private IP address:
    Find private IP address using the Mac “ipconfig” command
Hints
  • Instead of en0 you should specify your network device name.
  • To find your network device name execute route get 8.8.8.8 | awk '/interface/{print $2}'
  • An one-liner command ipconfig getifaddr $(route get 8.8.8.8 | awk '/interface/{print $2}')

ifconfig

  1. Launch “Utilities” by pressing Cmd+U.
  2. Open the “Terminal”.
  3. Type ifconfig and press Enter.
  4. As a result you’ll see your private IP address among network interface configuration:
    Find private IP address using the Mac “ifconfig” command
Hints
  • You can extract IP by executing the ifconfig | grep -oE 'inet \S+ | awk {print $NF}' command.

Find private IP address on Windows

Windows is used by a huge number of users and should provide convenient solutions for all kinds of purposes and people. This can be noticed even from the fact that there are several ways and tools to find your private IP address on Windows. Please choose below the method that is most convenient for you.

Control Panel

The Windows Control Panel is a catalog of system tools allowing you to set up your computer as you need. In addition, here you can find many tools that provide technical information about your computer. There are a lot of ways to open Control Panel. For example, here is some of them:

  • Open the Start Menu and click “Control Panel”.
  • Press Win+R, type control and press Enter.
  • Go to Start Menu → All Programs → Accessories → System Tools and click “Control Panel”.
  • Press Win key, type “control panel” and select it from the search results.

So, let’s find what is your private IP address:

  1. Open “Control Panel”.
  2. Click “View network status and tasks” from the “Network and Sharing Center” category.
  3. From the left sidebar click “Change adapter settings”.
  4. Right-click on the network adapter and choose “Status”.
  5. On the pop-up window click the “Details” button.
  6. As a result, a window appears with the technical details of your connection.
  7. Your private IP is displyed next to the “IPv4 Address” label:
    Find private IP address using Windows Control Panel
Hints
  • Press Ctrl+C to copy technical details of your connection.
  • First three steps can be simplified by pressing Win+R, typing ncpa.cpl and pressing Enter.
  • Another way to open “Network and Sharing Center” is to click on network icon in system tray.

CMD

The cmd.exe (also known as Windows Command Prompt) is the trusted friend of every advanced user. It helps automate a lot of things, as well as quickly change operating system settings or get various kinds of information about it. Unlike the Control Panel, this is a more universal option, and with the right skill, more convenient.

So let’s try to use CMD to find you private IP address:

  1. Press Win+R, type cmd and press Enter.
  2. Paste for /f "tokens=2 delims=[]" %i in ('ping -4 -n 1 %ComputerName%') do @echo %i
  3. Press Enter to execute the command.
  4. As a result you’ll get your private IP address:
    Find private IP address using Windows CMD
Hints
  • Use the ipconfig | findstr /R /C:"IPv[46] Address" command to find all IPv4 and IPv6 addresses.
  • Execute command ipconfig /all to display all details about your network connections.
  • To copy command line results right-click on it, select “Mark”, highlight text you want to copy, and press Enter.
  • There are more commands allowing you to find additional info about your network:
    • netsh interface ip show addresses
    • netstat -an
    • nbtstat -S
    • arp -a
    • wmic NICConfig

PowerShell

PowerShell is the little brother of CMD. Despite its young age, PowerShell is more powerful, and of course, it is a favorite tool of experienced users and system administrators.

Let’s see how we can use Powershell to find the private IP address:

  1. Press Win+R, type powershell and press Enter.
  2. Execute command (ping -n 1 -4 $env:ComputerName)[1] -match "\[(.+)\]" | % {$matches[1]}
  3. As a result you’ll get your private IP address:
    Find private IP address using Windows PowerShell
Hints
  • Also you can start PowerShell from Start Menu → All Programs → Accessories → Windows PowerShell.
  • Powershell can run the same tools and commands as CMD.
  • Additional ways of how you can get your IP address using Powershell:
    • (Test-Connection -ComputerName $env:ComputerName -Count 1).IPV4Address.IPAddressToString
    • (Get-WmiObject -Class Win32_NetworkAdapterConfiguration).IPAddress
    • ipconfig | Select-String "IPv4.+ (\S+)" | % {$_.Matches.Groups[1].Value}

System Information

The Windows System Information is a true treasure trove of technical information about your computer. It contains almost every piece of information about your hardware and software. And as a bonus, you can export all this in a handy format. This is definitely not the fastest way to find an IP, but it would be a pity not to mention it.

Let’s open this cyber chest and find you private IP address:

  1. Press Win+R, type msinfo32 and press Enter.
  2. Expand the “Components” category.
  3. Expand the “Network” subcategory and click “Adapter”.
  4. Scroll down until you’ll find your network adapter name.
  5. Your private IP is displyed next to the “IP Address” label:
    Find private IP address using Windows System Information
Hints
  • Also you can open System Information from Start Menu → All Programs → Accessories → System Tools.
  • Click a row and press Ctrl+C to copy it to clipboard.
  • To select multiple rows, hold Ctrl and click on the desired rows.

Registry Editor

The Windows Registry is the database where the operating system and most software store their configuration. And of course, it contains information about your private IP address. Although it is not easy to get to it, it can sometimes be useful (especially if you are a developer).

Well then, let’s get ready for click&scroll:

  1. Press Win+R, type regedit and press Enter.
  2. Go to HKEY_LOCAL_MACHINE → SYSTEM → CurrentControlSet→ services → Tcpip → Parameters → Interfaces.
  3. Gently click on the interfaces items until you find something similar to your IP address.
  4. Your private IP is displyed next to the “DhcpIPAddress” label:
    Find private IP address using Windows Registry Editor
Hints
  • Also you can open Registry Editor from Start Menu → All Programs → Accessories → System Tools.
  • Get the in-house experimenter out of here! Do not edit or delete anything here!!