Penetrating firewalls MFC interface
2016-08-23
0 0 0
no vote
Other
Earn points
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
c++
mfc
界面
防火墙
穿透
Related Source Codes
Local Path Planning Algorithm - DWA Algorithm
0
0
no vote
enDAQ-Shock-Data-Share-SRS-Blog
0
0
no vote
Calling chatGPT in a Windows application
0
0
no vote
Test Hello world
0
0
no vote
RCS calculation by one-way ray tracing
0
0
no vote
No comment