java - How to relay NAT dynamic port numbers if the server receives 0 as port no? -


i'm trying implement udp punch holing through java servlet. when use req.getremoteport() 0 (i.e. dynamic). that's doesn't help. way around that? alternative solutions?

http://sss.mysimpatico.com/server?authentication=unregistered

the code prints first 0 , 1 attached ip:

final int port = req.getremoteport(); pw.println(port); final string ip = req.getremoteaddr() + ":" + port; 

there gae issue (please star if interested): http://code.google.com/p/googleappengine/issues/detail?id=4210

your question tagged google-app-engine; google app engine uses http (see sandbox section), http uses tcp not udp.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -