A third possibility (if the router supports so) ould be using UPnP to query
for the outside IP address.
But these three are all methods possible.
--
Regards
Thomas Tomiczek
THONA Software & Consulting Ltd.
(Microsoft MVP C#/.NET)
(CTO PowerNodes Ltd.)
---
Still waiting for ObjectSpaces? Try the EntityBroker today - more versatile,
more powerfull.
And something in use NOW. for the projects you have to deliver - NOW.
"Steve Lutz" <slutz@NOSPAMPLEASEcomcast.net> wrote in message
news:eLYjabs6DHA.2628@TK2MSFTNGP10.phx.gbl...[color=blue]
> Demetri
>
> I don't think it is possible to determine the outbound IP address. What[/color]
you[color=blue]
> could do is call up an external page, such as
http://www.whatismyip.com/[/color]
and[color=blue]
> spider that page's content to determine the IP address your connection
> actually went out as. However, if there is a transparent proxy involved[/color]
(at[color=blue]
> your ISP for example), you'll get the IP address of the proxy server, and
> not the linksys router.
>
> Another approach is that you could determine your gateway address (not[/color]
sure[color=blue]
> how) and then call up the gateway's webpage. This of course would need to[/color]
be[color=blue]
> able to login to the router's web interface, and also navigate to the
> correct page. It would be heavily dependant on the router's manufacturer[/color]
and[color=blue]
> version of the software and not all routers have a web interface.
>
>
>
>
>
>
>
>
> "Demetri" <anonymous@discussions.microsoft.com> wrote in message
> news:3820EE56-19E2-4E34-806D-3C20CD9BEDDB@microsoft.com...[color=green]
> > How do I find out what the network IP address is?
> >
> > For example if I have a cable modem with 68.57.200.50 as the IP address[/color]
> and the linksys router assigns PC's on the network 192.168.1.1 how do I[/color]
find[color=blue]
> out that the address is 68.57.200.50 running my code on the PC with the IP
> address assigned to it by the router of 192.168.1.1 ?[color=green]
> >
> > Make sense what I'm asking? I like using WMI but if there is another way[/color]
> I'm willing to listen.
>
>[/color]