Find Public Ip Address

Anwar Yakkiparamban·Published · Updated
  • The Internet Protocol Address (or IP Address) is a unique address that computing devices such as personal computers, tablets, and smartphones use to identify itself and communicate with other devices in the IP network.Any device connected to the IP network must have a unique IP address within the network. An IP address is analogous to a street address or telephone number in that it is used to.
  • Just input the IP address and this service will show you the geographical location that it is coming from. IP Location Instantly Locate Any IP Address. This free online tool allows you to see the geographical location of any IP address. Just input the IP address and you will be shown the position on a map, coordinates, country, region, city.
  • ARIN Whois database provides a mechanism for finding contact and registration information for IP resources registered with ARIN. You may also use 3rd party websites such as Geobytes or Dnsstuff to lookup the IP address. The whois lookup will reveal name of the ISP who owns that IP address, and the country where it is originated from.
  • Above image shows both DNS resolver information and public IPv4 and IPv6 of the respected domain name. Finding domain name through Domain to IP tool. If you do not want to go with lengthy process above we have an easy method too where you can check IP address of your domain name almost instantly through Domain to IP address or Hostname to IP.

This tutorial is all about to find Private & public IP address and how to find them. An IP address (Internet Protocol address) is a numerical label assigned to each device (e.g., computer, printer, cell phone etc.), participating in a computer network that uses the Internet Protocol for communication. A public IP address is an IP address that can be accessed over the Internet. a public IP address is the globally unique IP address assigned to a computing device. The private IP address is used to assign computers within your private space without letting them directly expose to the Internet like a local area network(LAN).


1.Find your Private IP address.

The Public or External IP address is the one which is provided by your Internet Service Provider (ISP). Multiple computers can have a single public IP if a network is set up using the technique called NAT (Network Address Translation).


A private IP address is the address space allocated by InterNIC to allow organizations to create their own private network.To find local IP or Private IP assigned to your computer, Open your network and sharing center from the right bottom corner.

Click the name of your Internet connection to view its status.

Click the Details button in the connection’s status window.

You’ll find the IP address listed in the Network Connection Details window – look for the IPv4 Address field.

Another way to find your IP address in Windows is by running the ipconfig command in a Command Prompt window. You’ll see your IP address in the IPv4 Address row.

2.Find your Public IP address.

To find the Public IP of your router for internet connection, Go to http://whatismyipaddress.com. It will show you public IP.

There is another way to find Public IP address. Open your router administration page, this page displays your public IP address and other information about your Internet connection. Public IP address are dynamic, internet service provider (ISP) may change it.

Find Public IP Address in Java Programming

Here, we have posted a Simple Program that describes How To Find Public IP Address in Java Programming that you’re currently logged in. This Java Program is an IP Address Tracker Program wherein you can get the Public IP Address of your Machine only when you connect your System to the Internet.

What is an IP Address?

IP stands for Internet Protocol Address. It is a 32-Bit Address String. It is a Numerical Tag associated with every Electronic Device such as Mobile Phone, Laptop, Desktop, Printer, Router, etc that helps to identify every single device connected to a Network. It is primarily used for Communication with different devices connected on the same Network.

Find Public Ip Address Mac

How Does This Program Works?

This Program makes use of InetAddress Class to get the Public IP Address of your machine via WhatIsMyAdddress.com. However, this Program works only when your System is connected to the Internet. It gives an Error when Internet is not connected which we have handled through Exception.

Note: This Java Program To Find Public IP Address is developed in Linux Ubuntu Operating System. However, it is compatible with other Operating Systems as well.

Find Public Ip Address Terminal

Find public ip address for domain

Find Public IP Address in Java Programming Language

import java.io.*;
URL url_name=newURL('http://bot.whatismyipaddress.com');
BufferedReader sc=newBufferedReader(newInputStreamReader(url_name.openStream()));
InetAddress localhost=InetAddress.getLocalHost();
catch(Exception e1)
systemipaddress='Cannot Execute Properly';
catch(Exception e2)
systemipaddress='Cannot Execute Properly';
System.out.println('nYour IP Address: '+systemipaddress+'n');


What Is My Ip Location

Find public ip address of router

How To Find Public Ip Address In Cmd

We hope that you got a basic information about How To Find Public IP Address in Java Programming Language. In case you get any Compilation Errors with this Java Program To Check Public IP Address or you have any doubt about it, let us know about it in the Comment Section below.

Find Public Ip Address Of Website

Recommended Programs
Find Local Host IP Address in Java Programming Language
Execute Linux gEdit Text Editor with Java Program
Java Program To Convert Numbers into Words
Print Map of India in Java Programming
100+ Java Programs