Technology in terms you understand. Sign up for the Confident Computing newsletter for weekly solutions to make your life easier. Click here and get The Ask Leo! Guide to Staying Safe on the Internet — FREE Edition as my thank you for subscribing!

How to find the IP address of my computer?

How to find the IP address of my computer? Is there any command?

Sure there are commands.

But I have to ask you a question first:

Which IP address do you want?


Your Computer

Each machine connected to a TCP/IP network is assigned an IP address; this we already know. It’s not that difficult to determine what that IP address is.

In versions of Windows from Windows 2000 and later, run the Windows Command Prompt (Typically in Start, All Programs, Accessories). In the command prompt, type IPCONFIG and you’ll get something similar to this:

Windows IP Configuration Ethernet adapter Local Area Connection 2: Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . :
Subnet Mask . . . . . . . . . . . :
Default Gateway . . . . . . . . . :
“… since I’m behind a router, this is not the IP address that will actually be used when I access the internet.”

As you can see, the IP address of this computer is listed as “”.

(In Windows 98 and 95, you can Start->Run a program called “winipcfg” and get roughly the same information without using a command prompt.)

Now it’s important to note that this is the IP address of the computer. In fact, since I’m behind a router, this is not the IP address that will actually be used when I access the internet. The IP address shown here is my computer’s IP address on my local network only.

Your Internet IP Address

The IP address assigned to your internet connection is most easily seen by visiting any of the many “show me my IP address” pages on the internet. The one I remember most often is, but there are others.

Including my own: will show you your internet IP address and a few additional bits of information.

Even better, since any web site you visit gets the information, your IP address is: .

Why are they different?

Sometimes they’re not. If your computer is connected directly to the internet, then your machine is assigned an internet IP address. The IP address you see using ipconfig will be the same as that which you see reported by the “what’s my IP” sites.

If you’re behind a router (or a modem that is acting as a NAT router) then the internet IP address is actually assigned to the router. The router then hands out “local” IP addresses to the individual machines connected to it. Those are the “192.168.” addresses you’ll commonly see when running ipconfig. In fact, “192.168.x.x” is an invalid internet IP address, as that range, and a couple of others, are reserved exclusively for local network use.

When you’re behind a NAT router, “ipconfig” will report your machine’s local IP address, and the IP reporting web sites will show you your internet IP address.

Subscribe to Confident Computing! Tech problem solving & safety tips & a weekly confidence boost in your inbox every week.

I'll see you there!

10 Reasons Your Computer is Slow

Slow Computer?

Speed up with my special report: 10 Reasons Your Computer is Slow, now updated for Windows 10.

NOW: name your own price! You decide how much to pay -- and yes, that means you can get this report completely free if you so choose. Get your copy now!

32 comments on “How to find the IP address of my computer?”

  1. When I enter “IPCONFG” in the command prompt as directed, I get a message that it is not recognized as an internal or external command, inoperable program or batch file. I am running Windows XP, SP3 Professional
    Can you help?

    If your comment is accurate, it’s ipconfig not ipconfg – there’s a second ‘i’.

    – Leo
  2. This is for Robert Solarski (and everyone else!) —

    You’ve managed to catch Leo in a rare error: he mannaged to misspell the command. It’s not “IPCONFG”, but “IPCONFIG” (a second “I” belongs between the “F” and the “G”). That’s why you’re getting CMD.EXE’s equivalent of a “?SYNTAX ERROR”.

    Nyah nyah nyah, Leo! Shame on you! 🙂 🙂 🙂

    It happens more often than I’d like. Thankfully I can always count on my readers to point out my errors. (Fixed it by the way.)

    – Leo
  3. Be careful slinging the raspberries, Glenn P. !
    “he mannaged to misspell the command”
    contains a misspelling of its own!
    (“managed” contains but one “n”)

    😮 🙂 :=)

  4. Strictly speaking, ‘machines’ don’t have IP addresses, it’s network adapters that have an IP address! You’ll have an IP address for each network card installed; thus your computer could have two or three!

  5. Another way to find the IP Address is to go to the Internet and type in This works for only one networkcard. With more than one networkcard I don’t know if it would show multiple IP Addresses.

    As mentioned in the article services like only show you your internet IP address, they do not and can not show you the IP address of your machine (er, your machine’s network card) on your local LAN if you have a router.

    – Leo
  6. I got windows vista and when I type the IPCONFIG in search I get a result but when I click it it seems to open but then it close in less than a second after being open

  7. This new web site will tell you BOTH your external address (like the other sites) but also the local IP address of your computer, and the IP address of your router. Now you don’t need IPCONFIG!

  8. @Koushal
    The real IP number is a binary number. What you see is the decimal representation of that binary number. Each group of 3 digits represents a group of 8 binary digits from 00000000 to 11111111. 11111111 base 2 = 255 therefor the highest number in that group of 3 can only be 255.

  9. hi,
    but appears blank
    no ip address

    if i type ipconfig/renew
    all i can see is the router ip address
    pls help

    make sure you are running in a command shell that has administrative privileges. By that I mean you are you clicked on “run as administrator”.

  10. pls help
    when i try to launch
    specila force
    it says:

    gameguard error : 350
    fail to connect the gameguard server.please try again after a while, or checked personal firewall settings if any.

    pls somebody help me with this problem

  11. I ran ipconfig (on XP) but the resulting info flashes on screen for maybe about 1/10th sec. so unreadable. Tried several times.

    You need to run it in a Windows Command Prompt. Start, Run “cmd”, and then in the resulting window run ipconfig.

  12. respecet sir i want to know that how can i get an ip of a machine which is connected with my pc ? plzz sir inform me thanks

  13. sir,
    how can i establish a communication with an other device having ethernet port..?pls tell…

    That depends entirely on the specific capabilities of that device.


  14. Sir Leo, how can I view my friend’s IP address, we are in network (company), I know his username,example: cuteface — her username.. tnx a lot i’ll be waiting for your reply..

  15. How can I connect two my computers in different room without moving?
    What is comment that I can connect two computers together?
    I knew both ip addresses in two computers

  16. hello sir someone is sending me some mails and i want to know that from which exact location they are sending me these mails and i have trakked the ip address so please tell me how to get there address

  17. I did a search to help me find out my ip address. Some were command prompt links , others “show me” links, so I kept getting two different addresses. Your article, succinct and easy for a newbie like me to understand, cleared it nicely for me. I’ve bookmarked your site and flagged it as “go to”. Thanks for the good job!

  18. Hi! Is there any way to access any computers(files, folders etc. of that computers) that are connected to my wireless network via a router?


Leave a reply:

Before commenting please:

  • Read the article.
  • Comment on the article.
  • No personal information.
  • No spam.

Comments violating those rules will be removed. Comments that don't add value will be removed, including off-topic or content-free comments, or comments that look even a little bit like spam. All comments containing links and certain keywords will be moderated before publication.

I want comments to be valuable for everyone, including those who come later and take the time to read.