HighTechTalks DotNet Forums  

know my wan ip with c#

Dotnet Academic General Discussions microsoft.public.dotnet.academic


Discuss know my wan ip with c# in the Dotnet Academic General Discussions forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Soussan Mikael
 
Posts: n/a

Default know my wan ip with c# - 07-13-2005 , 05:19 PM






Hello evrybody,

I have to implement a simple module that can retrieve my own ip adress but
if i am behind a firewall i have to get my wan ip that's to say my external
ip adress!!!

I don't know how to do this!!!I see a little at WMI but anything.
My dns client updater can see my external ip, but if i launch ipconfig i see
only my lan 192.168.1.3)

Thank for helping!!



Reply With Quote
  #2  
Old   
CristianMori
 
Posts: n/a

Default RE: know my wan ip with c# - 07-14-2005 , 07:03 PM






Hi Mikael.
I really don't think that you can get the WAN ip if you are behind a
firewall. The reason is simply that your pc does not have any way to know it!

There is only one thing that you could do. If your WAN ip is the one that
you use to go out in internet you could write a Web service that return the
Ip address you are using to connect at it.

Hope it may help

"Soussan Mikael" wrote:

Quote:
Hello evrybody,

I have to implement a simple module that can retrieve my own ip adress but
if i am behind a firewall i have to get my wan ip that's to say my external
ip adress!!!

I don't know how to do this!!!I see a little at WMI but anything.
My dns client updater can see my external ip, but if i launch ipconfig i see
only my lan 192.168.1.3)

Thank for helping!!




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.