To use the magic of GMnet PUNCH you need to host a mediation/master/rendevouz server. The server is a small application written in Java that needs to be run on a server with a forwarded/open port.
To explain why you need this, let me explain how the hole punching works:
We need the master server (GMnet GATE.PUNCH) because we need to make the server aware of the fact that a client wants to connect.
The download can be found here:
The server is very basic, feel free to adjust it to your needs.
Currently the server binary listens on port 6510 and there to change it if you don't want to compile the server yourself, but we will add that option in the future.
To start it, run:
java -jar gmnet_gate_punch.jar
from the folder you saved the server in. Under Windows you might need to replace
java with the full installation path of java. Under linux I recommend
screen to run it in the background on a server.
For cheap hosting I personally recommend digitalocean. Server start at $0.0015 per hour (5$ per month) and you can cancel at every time.
Google yourself a promo code and you might get two months for free. There are also tutorial on how to set up java on these servers. They are basically linux servers with complete access.
If you want to use digitalocean, please use this code to register: https://www.digitalocean.com/?refcode=1bff6d6dff1a
If you want to know how to login to the server: https://www.digitalocean.com/community/tutorials/how-to-create-your-first-digitalocean-droplet-virtual-server
For some basic commands and stuff: https://www.digitalocean.com/community/tutorials/an-introduction-to-linux-basics
If you want to install java: https://www.digitalocean.com/community/tutorials/how-to-install-java-on-ubuntu-with-apt-get
For transfering the master server: https://www.digitalocean.com/community/tutorials/how-to-use-filezilla-to-transfer-and-manage-files-securely-on-your-vps [You can skip the stuff with the keyfile and everything. Simply install filezilla and connect to sftp://yourip with your username and password]
When you are done simply execute
java -jar gmnet_gate_punch.jar
As I said, I recommend install screen, it allows you to run commands even if you are not logged in, running in the background and you can just switch to them at any time: https://www.digitalocean.com/community/tutorials/how-to-install-and-use-screen-on-an-ubuntu-cloud-server
» Next topic: Starting the engine
« Previous topic: PLUS - Setup GMnet PUNCH
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.