GML How to allow Peer to Peer connection


Hello, let's say you have a master server that all it does is match players with each other by sending their IP. How would you make those matched players connect to each other? Wouldn't they have to have a port opened? Is there a way to make this connection without the players needing to manually open a port? Thanks


No, they don't need to have a port opened. It's also completely independent of the capabilities of the client's router. This is exactly how tools like Hamachi and multiplayer through Steam Friends work. Each client is assigned a new IP which can then freely connect to one another, without the need of port forwarding and such. Kinda like a VPN.

That also requires you to look further beyond and roll your own tech to write the corresponding server-client architecture yourself. A.k.a obviously not within GameMaker or anything related with.