What command reports the "real" IP address?

J

Julie Holiday

What command reports our "real" IP address to the world?

I have a standard home wireless setup with a cable modem connected to a
wireless router and a single laptop computer wirelessly connected.

I googled for "query IP address" and I found this commmand.
c:\> ipconfig /?
c:\> ipconfig /release
c:\> ipconfig /renew
c:\> ipconfig /all

But that ipconfig command doesn't give my "real" IP address.
That ipconfig command only reports my "fake" address!
Dhcp Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IP Address. . . . . . . . . . . . : 192.168.0.200
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.0.1
DHCP Server . . . . . . . . . . . : 192.168.0.1
DNS Servers . . . . . . . . . . . : 192.168.0.1

By googling, I found web sites that tell me my "real" IP address.

For example, http://www.webyield.net/domainquery.html
tells me my "real" ip address is 69.110.21.223

But how do I find my "real" IP address without having to go to a web site
to find out. Does the ipconfig command or the netstat command have a hidden
option to report the "real" ip address?

If not, what command reports the "real" IP address?
 
T

Tim Munro

Yes ipconfig does give you your "real" ip address. The address of your
workstation/laptop. What you are looking for is the external IP address of
your router. How you get that depends on the router you have and what
software (if any) came with it. Most likely you 'll have to open a web
session to your router (like when you configure it), and find it that way.
 
R

Rod Smith

What command reports our "real" IP address to the world?

I have a standard home wireless setup with a cable modem connected to a
wireless router and a single laptop computer wirelessly connected.

I googled for "query IP address" and I found this commmand.
c:\> ipconfig /?
c:\> ipconfig /release
c:\> ipconfig /renew
c:\> ipconfig /all

But that ipconfig command doesn't give my "real" IP address.
That ipconfig command only reports my "fake" address!
Dhcp Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IP Address. . . . . . . . . . . . : 192.168.0.200

That *IS* your *COMPUTER'S* "real" IP address. Chances are, though, that
you're sitting behind a NAT gateway, either built into your cable modem or
running as a separate device. The NAT router has its own IP address, which
is visible to the world at large, and it rewrites packets to and from the
computer(s) on the network it serves to make it seem as if the packets
come from the NAT router itself. There's no way you can tell what the NAT
router's address is using exclusively local commands on the computer(s) it
serves. Instead, you must either access the NAT router itself (via a
Telnet session, Web interface, or whatever) or access an outside Web site
that reports back your IP address (as you said you've done).
 
S

shogunu

Your real IP address 192.168.0.200 is par of the "private IP
addresses". You will never see this kind of address on the internet. On
your private network you can use any kind of Ip addresses. But to get
outside, on the internet, finaly you must have a public IP address.
This means that either your PC is cennected derectly to the internet,
which is very improbable, or you pass trough your ISP gateway, which is
directly connected to the internet.
For example my ISP gave me a public IP address. It was his option. So
it doesn't need to make NAT to allow me to exit on the internet.
But it would decide to gave me a private IP address, then NAT in
imperatively needed.


Br,
Dan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top