How To Find Out Your Computer's IP Address

Martin Brinkmann
Aug 29, 2011
Tutorials, Windows, Windows tips

I have received two emails in the past week from users who asked me for an easy way of finding their computer's IP address. Instead of replying to each user individually I made the decision to write it up here on Ghacks so that other users who were wondering about the same thing could benefit from it as well.

It first needs to be mentioned that your computer may have multiple IP addresses. That's the case for instance if you are currently connected to the Internet (which you may be since you are reading this text here) or if you have multiple network cards installed.

Each network card on your computer has a local IP address assigned to it. Plus, you get an IP address assigned to your computer whenever you connect to the Internet. The local IP address is only visible in the local network, for instance if a second computer in the network wants to communicate with yours. The Internet IP address on the other hand is often temporarily assigned, especially if you are on dial-up, DSL or cable.

Both local and Internet IP addresses look similar, each with four numbers separated by three dots. The core difference is that local IP addresses can only be accessed locally.

The easiest way to find out about your computer's IP addresses is to use the ipconfig tool. Start the Windows command line with the hotkey Windows-r, typing cmd and the enter key.

Type ipconfig, or ipconfig /all for a detailed listing.


  • IPv4 Address: This is the local IP address of the network card
  • Default Gateway: This is the local IP of a router or other device that is used for connections (for instance to the Internet).

You cannot display the IP address that your computer has received from the ISP this way though. To find out my computer's IP address I open in a web browser of choice.

ghacks ip look-up

Your IP address will be shown to you along with the port and browser information. And that's how you look up your computer's IP address.


Previous Post: «
Next Post: «


  1. jamie k joseph said on February 28, 2013 at 10:37 am

    nice trick

  2. Itrentalseurope said on September 1, 2011 at 9:05 am

    This is only for your lan settings, you can find your real ip anywere online, ie., ect.

  3. Pete said on August 29, 2011 at 4:10 pm

    Cool, I’ll give it another try on my site. Thanks Martin.

  4. Pete said on August 29, 2011 at 3:55 pm

    thats a handy page to create. can you post the php source for your page?

    1. Pete said on August 29, 2011 at 3:59 pm

      a wee bit of googling-action and i see it must be the following php echo commands:

      but how do i put them together to make a nice page?

      1. Pete said on August 29, 2011 at 4:01 pm

        commands (hopefully ghacks wont filter them out this time :


      2. Martin Brinkmann said on August 29, 2011 at 4:07 pm

        You basically use variables and then the echo command to return the information to the user.


Leave a Reply

Check the box to consent to your data being stored in line with the guidelines set out in our privacy policy

We love comments and welcome thoughtful and civilized discussion. Rudeness and personal attacks will not be tolerated. Please stay on-topic.
Please note that your comment may not appear immediately after you post it.