ustulation / p2p

NAT Traversal techniques for p2p communication
BSD 3-Clause "New" or "Revised" License
133 stars 28 forks source link

Enpoint Dependant Mapping random ports #82

Closed povilasb closed 5 years ago

povilasb commented 5 years ago

This PR updates rendezvous_addr() to return a new NAT type EDMRandomPort when it detects endpoint dependent mapping that allocates random ports each time. In such case we can't predict the next port that will be used and hole punching is impossible as we know now. So best we can do is return error with those random ports for future inspection/logging.