What is my IP Address?

A public IP address is an IP address that can be accessed over the Internet. Private IP address on the other hand is used to assign computers within your private space without letting them directly expose to the Internet. For example, if you have multiple computers within your home you may want to use private IP addresses to address each computer within your home. In this scenario, your router get the public IP address, and each of the computers, tablets and smartphones connected to your router (via wired or wifi) get a private IP address from your router via DHCP protocol.

There are few ways to find out  private ip address assigned to your computer network adapter and public ip address assigned to your router. In this tutorial i will explain easiest way to find out both private and public ip addresses assigned to your computer and router.


What is my Private IP Address
Follow below steps to find out private ip address assign to your computer network adapter.


1. Open the Command Prompt by clicking Start Menu --> All Programs --> Accessories, right-click on Command Prompt, and open it as an administrator. In Windows 8, 8.1 and  Windows 10 simply hold down the What is my IP Address? BxVxp04 + X keys and select the option “Command Prompt (Admin)” from the menu.

What is my IP Address? RS4b5c0

2. Enter following command within Command Prompt:

Code:

ipconfig


What is my IP Address? 93HzIkG

Above commands will reveal your private ip address that is assigned to your computer network adapter.
The ipconfig command by  default displays only the IP address, subnet mask and default gateway for each adapter bound to TCP/IP. My private ip address displayed as 192.168.1.21, which is assigned to my wireless network adapter named "WIFI 2".

Private networks can use IP addresses anywhere in the following ranges:

 

  • 192.168.0.0 - 192.168.255.255 (65,536 IP addresses)
       
  • 172.16.0.0 - 172.31.255.255 (1,048,576 IP addresses)
       
  • 10.0.0.0 - 10.255.255.255 (16,777,216 IP addresses)




What is my Public IP Address
Follow below steps to find out public ip address assign to your router.

1. Open the Command Prompt by clicking Start Menu --> All Programs --> Accessories, right-click on Command Prompt, and open it as an administrator. In Windows 8, 8.1 and  Windows 10 simply hold down the What is my IP Address? BxVxp04 + X keys and select the option “Command Prompt (Admin)” from the menu.

What is my IP Address? RS4b5c0

2. Type following command and press Enter key:

Code:

powershell


3. Type following powershell commands one at time and for each command press Enter key.

Code:

$wc = new-object System.Net.WebClient


Code:

$wc.DownloadString("http://myexternalip.com/raw")



What is my IP Address? E4VzuyD

Above commands will display your public ip address assigned to your router. My public ip address assigned to my home router is 82.222.135.228.

The "Nslookup" command-line can also be use to display your router public ip address. Follow bellow steps to find out public ip address assigned to your router.

1. Open the Command Prompt by clicking Start Menu --> All Programs --> Accessories, right-click on Command Prompt, and open it as an administrator. In Windows 8, 8.1 and  Windows 10 simply hold down the What is my IP Address? BxVxp04 + X keys and select the option “Command Prompt (Admin)” from the menu.

What is my IP Address? RS4b5c0

2. Type following command and press Enter key:

Code:

nslookup myip.opendns.com  resolver1.opendns.com


What is my IP Address? O9rHcof

The public ip address will be displayed after the "Non-authoritative answer:" entire.