I'd like to use upnp for port mapping multi-player activity with the game. I found out upnplib and cyberlink for java.
the latter is quite a bit older, but is there any more recent stuff or do you know a better way to connect two players in a peer-to-peer fashion ?
I've got an implemented server-client interface, whose connection depends on a specific port, selected randomly, but which will not get opened unless set up by the players themselves when using a firewall/router beyond the local network. Then, I'd like to make players able to "announce" on a database located on any internet server, which will list matches (as hosts) available... quite a common sense.
e.g. "I host a game on 22.214.171.124:9090, would you like to join it ?" anyway the odd player wouldn't establish the connection if he ain't up to access its router admin to open port 9090 for UDP/TCP. Hence, almost all routers run UPNP nowadays so that it can solve the technical issue for that average player.
UPNPLib documentation talks about security issues with ACL
which were not available at the time this project was developed, then it may not work with newer devices (