Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

P2P NAT UPnP and Java

843790Aug 26 2009 — edited Aug 28 2009
I'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!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 25 2009
Added on Aug 26 2009
5 comments
621 views