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

有个问题 #2

Open
saintthor opened this issue Dec 3, 2017 · 0 comments
Open

有个问题 #2

saintthor opened this issue Dec 3, 2017 · 0 comments

Comments

@saintthor
Copy link

当两个节点都知道对方的外网 IP 之后,互发 udp,但只能发到对方的 NAT 的某个端口,而不能控制自己的 NAT 用哪个端口发出,这两个端口是怎么对上的?

例如:
A 用约定的 port 2222 向 NAT_B 的 port 3333 发 udp,可是这个包是从 NAT_A 的 port 4444 发出的。同时 B 向 NAT_A 的 port 2222 发 udp(它不知道 NAT_A 把 A 的 2222 映射到 4444,无法穿透 NAT_A。同理 A 发的包也无法穿透 NAT_B。

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