If your game is web-based, you could leverage WebRTC - where you only need to share a unique link between users - see peerjs (https://peerjs.com/) or croquet.io (https://croquet.io/docs/croquet/)
The good news is that WebRTC is perfectly straightforward if all you want to do is to connect to a server on the open internet.