通过http打洞

发布于 2024-12-06 19:20:09 字数 89 浏览 3 评论 0原文

我怎样才能通过http打洞,就像我在godaddy有一个服务器一样 它对tcp侦听器的端口访问已关闭,所以我可以获得客户端的端口 从其请求到 aspx 页面的编号?

How can I do the hole punching over http,like I have a server in godaddy
Its port access for tcp listeners is closed,so can I get the client's port
number from its request to an aspx page?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦毁影碎の 2024-12-13 19:20:09

如果您使用 java 并且可以访问服务器端的 http 请求,则可以使用 getRemoteAddr()getRemotePort() 处理请求的 servlet 中的方法。

If you are using java and have access to the http request on the server side, you can get the remote address and port with the getRemoteAddr() and getRemotePort() methods in the servlet handling the request.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文