Upload Code
loading-left
loading loading loading
loading-right

Loading

Profile
No self-introduction
codes (1)
Penetrating firewalls MFC interface
no vote
To bind to different sockets on the same network terminal, you must set so for these sockets_ Reuseaddr property (that is, reuse is allowed), otherwise listening will fail. 4. After receiving the application from a, s's [assist drilling] connection notifies B through [main connection], and tells B the public network IP address and port of a after nat-a conversion. 5. After receiving the connection notification from s, B first connects with the [help to punch] port of S, and immediately disconnects after sending any data. The purpose of this is to let s know the public IP and port number of B after nat-b conversion. 6. B tries to connect with a's public IP address and port after nat-a conversion. According to different routers, there will be different results. Some routers can establish a connection in this operation. Most routers directly discard uninvited syn request packets, which leads to connection failure. But nat-a will record the source address and port number of this connection for the next real connection Next time, a will be able to connect directly to the port number B just used
xiangyi12
2016-08-23
0
1
No more~