If you want GMnet ENGINE can be used to connect players even if the do not forward ports in their firewall.
Please note, that you need GMnet ENGINE for this, simply using GMnet CORE is not enough. If you downloaded GMnet ENGINE from the Game Maker Marketplace, you are good to go (See the site on version differences for more information).
To understand this, you need to know, that whenever you want to play a game with someone there are three options:
That means if you DISABLE GMnet PUNCH , your players either can't play together online, only locally, or the server has to open ports.
htme_init there are several variables you need to change to use GMnet PUNCH.
self.use_udphp: This is the most obvious one. Set this to true, to enable GMnet PUNCH.
self.udphp_master_port: You need to set these to the ip and the port of your mediation server. What a mediation server is, is explained in the next section. You basically need to host a server, to which server and clients connect to share their information.
self.udphp_rctintv: How often (in steps) the server should reconnect to the mediation server to make sure it is still connected. It is important that the server is connected to the mediation server, so don't set this too high. The default option should be fine.
If you don't have a server yet you can use the ip 220.127.116.11 and the port 6510 for testing only.
» Next topic: PLUS - Hosting a mediation server
« Previous topic: Basic configuration
All pages in this manual are licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Manuals / GMnet ENGINE Manual
|0. What is GMnet ENGINE?|
|1. Basic configuration|
|2. PLUS - Setup GMnet PUNCH|
|3. PLUS - Hosting a master server|
|4. Starting the engine|
|5. Setting up the basic platformer|
|6. The network controller|
|7. Adding a player|
|8. A second room and doors|
|9. Showing a list of players|
|10. Adding day/night|
|11. Creating a chat system|
|12. Conclusion / What's next|
|BONUS 1 - PLUS - ONLINE lobby|
|BONUS 2 - Global Sync|
|BONUS 3 - LAN lobby|
|BONUS 4 - Event Handlers for Connecting/Disconnecting|
|BONUS 5 - RPC|
|Local and remote Instances|
|Instance scope and rooms|
|Players and Playerhashes|
|States of the engine|
|mp_map_syncIn and mp_map_syncOut|
|VarGroup SyncTypes (mp_type)|
|PLUS - GMnet PUNCH|
|PLUS - Master Server (GMnet GATE.PUNCH)|
|The debug overlay|
|PLUS - GMnet GATE.TESTER|
GameMaker: Studio is owned by YoYoGames. GMnet is not affiliated with YoYoGames.
The GMnet logos use icons from Entypo (http://entypo.com/) and Open Iconic (https://useiconic.com/open/). They are licensed under CC BY-SA 4.0.