P2P NAT UPnP and Java
843790Aug 26 2009 — edited Aug 28 2009I'm trying to get a P2P thing happening between two applets across the internet. I'm using regular java.net.ServerSocket.ServerSocket and java.net.Socket.Socket to connect. All works fine without NAT/firewalls or locally. Obviously it does not work when either or both is behind NAT. However, for those routers than support UPnP I want to be able to configure the router to auto port forward to my socket.
Can this be done using the standard JDK? I can't find anything in the docs. If not, can anyone point me in the right direction?
Thanks for reading!