Discussion:
[asio-users] Transfering information about connections behind NAT
Jim Sager
2008-09-25 00:53:04 UTC
Permalink
If the connection is not behind a NAT, you can just send it's port and IP address to someone and they can connect.

How do you transfer information about a connection behind a NAT so that another connection which may be behind a NAT can connect?
Nicolas Alvarez
2008-10-05 01:01:21 UTC
Permalink
Post by Jim Sager
If the connection is not behind a NAT, you can just send it's port and IP
address to someone and they can connect.
How do you transfer information about a connection behind a NAT so that
another connection which may be behind a NAT can connect?
If both connections are under a NAT, I don't think it's possible at all to
get a direct connection between them. Unless you use UPnP to open a port
(but then you could say you aren't under a NAT anymore).
Simon Perreault
2008-10-06 12:00:25 UTC
Permalink
Post by Nicolas Alvarez
If both connections are under a NAT, I don't think it's possible at all to
get a direct connection between them.
Just to nitpick... It's possible unless both NATs use address and/or
port-dependent mapping (e.g. symmetric NATs).
--
Please try Numb, a STUN/TURN server implementation.
Free access at http://numb.viagenie.ca/.
Djibril''
2012-10-02 06:42:45 UTC
Permalink
Post by Simon Perreault
Post by Nicolas Alvarez
If both connections are under a NAT, I don't think it's possible at all to
get a direct connection between them.
Just to nitpick... It's possible unless both NATs use address and/or
port-dependent mapping (e.g. symmetric NATs).
But still I don't know ehr to say that if you are using antivirus like Kaspersky
then your connection gets some delay injected ( i used boost asio 1.47, default
http_server example.)

Loading...