General discussion


Get the WAN IP address from the command line?

By Healer ·
This laptop of mine I am working on connected to the Internet through a router that connected to a cable modem with the ISP.

From the Netgear gateway I can see an IP address to connect the device in Remote Management. I wonder if that is the IP address of my router from the outside world, the Internet.

Is there some way I can verify that? I use ipconfig /all but do not see through the router. I remember if my memory serves me right I could see the WAN IP address if my computer connected directly to the modem.

I ask for this because I want to test remote desktop connection over the Internet and I suppose I need the WAN IP address.

This conversation is currently closed to new comments.

16 total posts (Page 1 of 2)   01 | 02   Next
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Check this

by Mohammad Oweis In reply to Get the WAN IP address fr ...

First the IP address in the Netgear router for remote management is your WAN IP address.

To find you public IP (WAN IP), use one of the following sites:

There are many other sites, but these are enough.
You can not find your public IP in this situation from CLI

Collapse -

Thank you!

by Healer In reply to Check this

I thank you for your advice.

Collapse -


by Mohammad Oweis In reply to Thank you!

Welcome anytime.

Collapse -


by IC-IT In reply to Check this

it shows with a tracert

Collapse -


by Mohammad Oweis In reply to Unless

unfortunately you can't see it in tracert.
first hop will be your router (private IP), second one will be your ISP gateway.

Collapse -

I just did a tracert

by Healer In reply to Nop

on just now and I couldn't see my WAN IP address in there. I don't know what the first one is.

Tracing route to []
over a maximum of 30 hops:

1 9 ms 7 ms 9 ms
2 11 ms 8 ms 8 ms []
3 10 ms 7 ms 8 ms []
4 * * * Request timed out.
5 9 ms 8 ms 9 ms []
6 11 ms 8 ms 11 ms
7 10 ms 16 ms 17 ms
8 10 ms 11 ms 11 ms []

Trace complete.

Collapse -

Private IP

by Mohammad Oweis In reply to I just did a tracert

The IP address is a private IP, supposed to be inside your network (your Netgear router).
But having a 9ms for the first hop, this mean that the device is far from you, if its not your router IP then most probably belong to your ISP.

You will never see your WAN IP here.

Collapse -


by Healer In reply to Private IP

I can't find the IP address anywhere in my network. My LAN gateway is
Also I try to access the gateway using the WAN IP address from within the LAN. It always times out even though I have explicitly allowed for that on the Remote Management. I've also noticed that the WAN IP address so far has never changed even though it is supposed to be dynamic.

Collapse -


by Mohammad Oweis In reply to Strange!

Maybe your ISP is using some kind of proxy or NATing, and let all his customers use a single public IP, and let you use a private IP between you and him.
Some ISPs do that, but they have to tell there customers about that.
Try to ping, if you got a reply, then get nmap program
and run the following command "nmap -A" this will give you a description about what is this device.

Collapse -

nmap -A result

by Healer In reply to Private IP

Is it a router at the ISP side?

C:\Program Files\Nmap>nmap -A

Starting Nmap 5.21 ( ) at 2010-02-03 21:46 AUS Eastern Daylight
Nmap scan report for
Host is up (0.014s latency).
Not shown: 997 closed ports
25/tcp filtered smtp
139/tcp filtered netbios-ssn
161/tcp filtered snmp
Warning: OSScan results may be unreliable because we could not find at least 1 o
pen and 1 closed port
Device type: router|switch
Running: Cisco IOS 12.X
OS details: Cisco 2821, 6506, or 7206VXR router (IOS 12.2), Cisco 3750 switch (I
OS 12.2), Cisco Catalyst 2960 or 3600 switch
Network Distance: 1 hop

TRACEROUTE (using port 8080/tcp)
1 20.00 ms

OS and Service detection performed. Please report any incorrect results at http:
// .
Nmap done: 1 IP address (1 host up) scanned in 10.87 seconds

Back to Hardware Forum
16 total posts (Page 1 of 2)   01 | 02   Next

Related Discussions

Related Forums