Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement NAT Traversal for symmetic NAT #2

Open
orangeseeds opened this issue Feb 25, 2024 · 0 comments
Open

Implement NAT Traversal for symmetic NAT #2

orangeseeds opened this issue Feb 25, 2024 · 0 comments

Comments

@orangeseeds
Copy link
Owner

orangeseeds commented Feb 25, 2024

The initial handshake to exchange information works nicely, but after getting the public IP and ports, when the peers try to fire a packet to one another the packet was seemingly going nowhere.

I completely missed the fact that on giving the packet a new address(the remote peer address rather than the relay address) a new binding was created in the NAT even when sending the packet from the same port. So the problem was both the peers were sending packets to ports which were being used for the relay connection and thus due to symmetric NAT and not matching the remote address in the connection the packets were essentially getting discarded on the side of the receiver.

@orangeseeds orangeseeds changed the title Find solution to the problem of port assignment by Symmetic NAT Implement NAT Traversal for symmetic NAT Feb 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant