Simply detect the NAT type and implement P2P connection
- two servers with public addresses
- use
cmake.*
script to build applications - start server A with
server [server B's address]
- start server B with
server [server A's address]
- detect client's NAT type with
client [server A's address] [server B's address]
- detect another client's NAT type with
client [server A's address] [server B's address]
will start P2P connection - enjoy it