You need to make a game lobby. This would be code that would run on your server. Servers are cheap, you can get one for a few dollars a month. The game lobby does not run the code for the game, it is just to connect the peers. You can get the WAN IP address from a client using PHP, or various backend technologies, and then store this in some temporary table for other clients to connect to.
For example, you can let one person start a game lobby, they just give it a name, and it connects to the lobby server (which is hard-coded into the game, like my-game-lobby dot com) and then the server adds their IP to the list. Other clients can query the lobbies for the game, which will show a UI table with the available lobbies, and their names and the names of the peers connected. Then they click "Join Lobby" which uploads their IP to the server, and the other peers can probably check every few seconds for new IPs from the server to update their local list. Then once the lobby has enough people, or when someone clicks "Start Game", or whatever, the game starts and uses peer to peer, without any further need for the lobby server.