Re: WAN IP address from a computer..

From: Herb Martin (news_at_LearnQuick.com)
Date: 01/04/05


Date: Mon, 3 Jan 2005 20:10:14 -0600


"Ryan Hanisco" <rhanisco@flagshipis.com> wrote in message
news:ey$uUgb8EHA.1524@TK2MSFTNGP09.phx.gbl...
> 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.

Actually I do this automatically by having the router/NAT
register it's external address.

Even many (of the latest) simple hardware routers will do
this using various Internet based (programmatic) Dynamic
DNS services.

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

-- 
Herb Martin
>
> -- 
> 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
> >
>
>