It works running both on one computer using port 12345 and ip "localhost", and it works over internet using port 12345 and my public ip. But for it to work over the internet i had to set up my router to forward port 12345 to my computer running the server.how do i make it so that the program opens up a user defined port and forwards it to the server computer, so that users of the program only have to know the public ip of the server and the port. I don't know if that's how its supposed to work but that was what i was thinking. Thanks.

You can use it to configure your router to redirect traffic. Does anyone have experience using UPnP? It sounds really cool, but I wonder (a) how well it works and (b) how many routers actually support it?

If anyone is interested, I write a small test program to see how well that works (you folks would have to run it though)?

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org