There is really no way to do that reliably using your local system as the
only point of query. Once IP packet leaves your system it can get translated
and changed any number of times without your system's knowledge, that is hte
whole point of NAT.
If your firewall is local to your PC, you can query the firewall
configuration to determine external IP address, however, if firewall is a
different system - the only truly reliable way to determine translated IP
address is to query a remote system outside your firewall for it to report
which IP address you APPEAR to be coming from.
> Hello evrybody,
>
[quoted text clipped - 7 lines]
>
> Thank for helping!!
Soussan Mikael - 14 Jul 2005 08:14 GMT
that's to say i have to implement a server located on the web and to ask him
for my ip adress???
How czn I do in C# to ask various websites that print my ipadress?
> There is really no way to do that reliably using your local system as the
> only point of query. Once IP packet leaves your system it can get
[quoted text clipped - 23 lines]
>>
>> Thank for helping!!
Lau Lei Cheong - 15 Jul 2005 02:58 GMT
You may create a webservice that'll return client's IP and use "wsdl"
command to generate proper C# class for you if you want.
Or create a plain ASP/ASP.NET page that'll return client's IP, and use
webclient class to read it.
There're many ways to implement it.
"Soussan Mikael" <mikael@soussan.homeunix.net> ¼¶¼g©ó¶l¥ó·s»D:42d61152$0$1254$8fcfb975@news.wanadoo.fr...
> that's to say i have to implement a server located on the web and to ask
> him for my ip adress???
[quoted text clipped - 28 lines]
>>>
>>> Thank for helping!!