Helping people with computers... one answer at a time.

Determining your own IP address is very easy, but it first requires understanding which IP address it is you want to see.

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. . . . . . . . . . . . : 192.168.1.5
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1
"... 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 "192.168.1.5".

(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 ipchicken.com, but there are others.

Including my own: http://ask-leo.com/whats_my_ip_address.html 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: 38.107.179.237.

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.

Article C3557 - November 6, 2008

Leo Leo A. Notenboom has been playing with computers since he was required to take a programming class in 1976. An 18 year career as a programmer at Microsoft soon followed. After "retiring" in 2001, Leo started Ask Leo! in 2003 as a place for answers to common computer and technical questions. More about Leo.

Not what you needed?

Recent Comments
28 Comments

@uday
Maybe this article will help:
How should I set up my home network?

Posted by: Connie at January 6, 2012 8:42 AM

My laptop does not show any IP address. Tried cmd-ipconfig. Thanks.

Posted by: Zahirul Haque at January 28, 2012 8:25 PM

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..

Posted by: ELA at March 20, 2012 12:46 AM

@ELA
If you look at the header information in an email you get from that person, you can see the IP address where it was sent from.

Posted by: Mark J at March 20, 2012 1:39 AM

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
Thanks,
Hai

Posted by: Hai Ho at March 31, 2012 1:49 PM
Post a comment on "How to find the IP address of my computer?":





Remember Me?

(You may use HTML tags for style)

Before commenting, please...

  • READ THE ARTICLE. A comment that shows you didn't will be deleted and ignored.

  • Comment only on the article. Use the search box at the top of the page if you have a question about something else.

  • NO PERSONAL INFORMATION in the comment. No email addresses. No phone numbers. No physical addresses.

  • Anything that looks the least bit like spam will be deleted. Links to unrelated sites or links that appear to be primarily promotional will be deleted, or the comment will be deleted.

  • Don't ask me to recover lost passwords or hacked accounts. I can't. Those comments will be deleted.

  • I can't respond to every comment. And I can't vouch for the accuracy of others who do.

Please wait. Your comment is being processed ...