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.
精彩评论