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!! |