通过http打洞
我怎样才能通过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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您使用 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.