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

使用UDP时,内网和外网ip该如何设置? #115

Open
grasstractor opened this issue Feb 17, 2023 · 1 comment
Open

使用UDP时,内网和外网ip该如何设置? #115

grasstractor opened this issue Feb 17, 2023 · 1 comment

Comments

@grasstractor
Copy link

我的服务器是腾讯云 UBUNTU22.04,使用tcp目前连接正常
internal和external的IP全部配置为同一个内网IP10.0.12.*
在建立UDP连接时,服务器返回的UDP连接地址是10.0.12.*:[随机端口]
我的客户端程序接下来就把UDP包向返回的UDP连接地址发包 但显然这是不行的 因为客户端无法ping通内网IP

@grasstractor
Copy link
Author

使用了SSTAP工具测试显示UDP连接成功,但我抓包发现其实是因为SSTAP软件的设置是不正确的
SSTAP忽视了服务器返回的UDP连接地址,只使用了返回的UDP连接端口,这样仍然连接到了服务器的外网IP
但这不是解决办法,服务器应该加一项配置可以使返回的IP地址符合规范

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