A minimal idiomatic example of the Godot 4 high-level multiplayer api, using a dedicated server architecture
- Easily switch between
ENet,WebSocketorWebSocketSecurenetworking backends - Abstract class
NetworkManagerfor easy use in your own projects Creative Commons Zerolicense so you can do what ever you want
The example produses 2 executables per os:
- The game
- The headless server
A. Run the game with the --host command-line argument
B. Run the headless server (use the *.console.exe to automaticly launch a terminal)
You are now hosting a server
- Run the game
- Paste the ip/hostname of the server into the
Address:field - Click
Join
- TODO