开发者

Hole punching over http

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 clien开发者_如何学JAVAt's port number from its request to an aspx page?


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜