Re: WAN IP address from a computer..

From: Ryan Hanisco (rhanisco_at_flagshipis.com)
Date: 01/03/05


Date: Mon, 3 Jan 2005 11:17:17 -0600

Sajid,

There is no way to do this in the environment you've described. Generally
you're doing your NAT on your router or firewall. Because this is outside
of the server, the server has no way of knowing what you've assigned to it.
Indeed, in a PAT situation it becomes even more impossible (is that
possible? <G>).

Herb is right. If you put the WAN address in the DNS manually, you will at
least have something with which to look it up, though I'd generally keep WAN
addresses in an external DNS in my DMZ and leave the internal DNS handling
LAN naming.

Use a spread*** or use internal comments to comment your router/ firewall
configs.

-- 
Ryan Hanisco
MCSE, MCDBA
Flagship Integration Services
PS: If you're using multihomed machines with a NIC in each network, both LAN
and WAN, you can find it with IPCONFIG, but this should almost never be
done. (I wasn't sure if this was your configuration or not, from your post.)
If you're doing this, quit it.  Establish a DMZ and control the ports.
"Sajid Saeed" <hitman_s@hotmail.com> wrote in message
news:1104762323.268830.321220@c13g2000cwb.googlegroups.com...
> Hi,
>
> Is there any possibility of getting the WAN IP address from a computer
> connected on the LAN..
>
> Lets say we have x computers, with  static LAN IP address, and a router
> which is connected on the LAN, and provides the WAN interface as well.
>
> So how can we find the WAN IP address of the router directly using a
> shell command from any computer on the LAN
> Thanks well in advance
>
> Sajid Saeed
>