-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ok, the stun client command seems to be my answer!!
I get my external IP address, and the type of NAT I'm using: Indepndent 
Mapping, Port Dependent Filter, preserves ports, no hairpin

Have a nice day

example:

[EMAIL PROTECTED]:[~/../stund]$ ./client stunserver.org -v
STUN client version 0.96
Opened port 18804 with fd 3
Opened port 18805 with fd 4
Encoding stun message:
Encoding ChangeRequest: 0

...............
.................

About to send msg of len 28 to 62.210.194.120:18804
test I = 1
test II = 0
test III = 0
test I(2) = 1
is nat  = 1
mapped IP same = 1
hairpin = 0
preserver port = 1
Primary: Indepndent Mapping, Port Dependent Filter, preserves ports, no hairpin
Return value is 0x000017



Hans-Werner Hilse a écrit :
> Hi,
> 
> On Thu, 11 Oct 2007 14:43:15 +0200 Marc LEURENT <[EMAIL PROTECTED]> wrote:
> 
>> I would like to know how is it possible to quickly know its public IP
>> address behind a NAT from the console... I'm using links + a My IP
>> search but it sucks....
> 
> You can craft a similar service that just reports the querying IP. You
> can e.g. do without the HTTP protocol and just setup a simple server,
> e.g. using ucspi-tcp, which sets the TCPREMOTEIP environment variable.
> 
> Then you can just use netcat. Of course, for all this you'll need a
> server on the net.
> 
> OTOH, you could just ask your gateway, if there are means to that (you
> didn't tell us anything about it).
> 
> And what different methods of NAT are you talking about in this context?
> 
> 
> -hwh
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHDjjxqjpLE0HiOBYRAvRdAJ98IJlBz8TsZO1MBKuQ7VT6pCdwbwCfXmhD
hFFo/xuB34F3Ml3rEsp0hoM=
=uB/h
-----END PGP SIGNATURE-----
-- 
[EMAIL PROTECTED] mailing list

Reply via email to