Saturday, October 2, 2010

Find your IP Address

Hello guys.

Do you want to find your IP Address?

There are following ways to check / find your IP Address

  1. Using Command prompt.
  2. Using Programming.
1. Using Command Prompt :
  • Open Command Prompt.
  • Type "ipconfig" without quotes & Press Enter. IP Address will be displayed.

2. Using Programming :
Here we are using a Java Program to find the IP Address. The Java Program to find the IP Address is as follows;




 * Language : Java
 * File :
 * Date : Saturday, October 2, 2010
 * @author Atul Palandurkar
 * Email :
 * Website :
public class IPAddressFinder {

    public static void main(String[] args){
        try {
            InetAddress ia = InetAddress.getLocalHost();
            String ip = ia.getHostAddress();
            System.out.println("Your IP Address :- "+ip);
        } catch (Exception ex) {


The above code can be very useful to find the IP address of your computer, as well as this can be used to find the IP address of the user in internet based applications with a little change in it.

Use it & have fun.



At October 5, 2010 at 4:56 PM , Blogger Raj said...

Thanks a lot Aatul for this. For many days i was looking for this for my engineering project & i was very much in need of it as i was not getting any clue for how to find the os? Really thanks a lot.


Post a Comment

Subscribe to Post Comments [Atom]

Links to this post:

Create a Link

<< Home