How to know my Public IP Address?

Public IP Address is the assigned IP address to your device which is connected to the computer network and which can be accessed directly from the Internet.

For an example, Public IP Address can be assigned to Routers, Web Servers, E-mail servers or any other services which are directly accessible from Internet.

If Public IP address is directly assigned to your desktop or server computer then you can easily find it by following the same steps, by which you can find your local IP address.

But, if there is no IP address in your LAN property or there is only a Local IP address, you can find your Public IP address by following steps.

The easiest way is visiting homepage of our website – https://www.ipconfig.in/

What is My IP Address?

This will not just show your public IP address but you will also come to know many thing about your ip address, such as , Organisation, name of Internet service provider, Country, city, zip, and even Longitude and latitude with Geographical map. You can also lookup any other Public IP address on this page to know the location and more about that IP address.

If you are looking for http/https based way or you are using terminal or you want to get a public IP into your program or code by using http protocol, you can visit or “curl” following url to get just a Public IP address as a RAW text.

Command for Linux and Mac OS:

curl ipconfig.in/ip

get public ip by curl command

Another way is to query a request for the IP of the domain myip.opendns.com to the DNS server resolver1.opendns.com. This server will return the IP, the request comes from.

For this you can use either “nslookup” or “dig” command. nslookup will work mostly on all the Operating systems. dig command won’t work on default Windows cmd.

nslookup myip.opendns.com resolver1.opendns.com

get public ip by nslookup command

dig +short myip.opendns.com @resolver1.opendns.co

get public ip by dig command

Leave a Reply

Your email address will not be published. Required fields are marked *