Multiplayer in Godot is Easier Than You Think - A comprehensive beginners guide

I just published a free, comprehensive beginner’s guide to multiplayer in Godot! It covers how the engine’s high-level multiplayer system works and walks through building a simple co-op platformer from scratch, step by step. It also covers how to take your game online, whether that’s self hosting, renting a server or using our free relay service. I put a lot of work into this one, I hope it’s useful!

7 Likes

I’m going to check it out. I’m currently looking for a new multiplayer solution.

My I ask why? Is the built in not good or lacks some features? I haven’t used it yet.

Wow. This might’ve been the final piece I needed to get Monkanics’ relay server working.

That last step being figuring out what command to use to execute the server file.

3 Likes

NAT punchthrough is the big thing it lacks. Not an issue if your players are hosting and on the same network. But an issue if you want to do centralized matchmaking with people who don’t know each other, or you want to host the gave server yourself, or you want players to host.

An alternative I’m considering is using Steam’s tools.

1 Like

This section of the guide might be useful to you in particular!

1 Like

I see.

What about W4 Cloud? I just took a brief look at the docs, but noticed that I need to do some learning before to understand everything. Never heard of STUN and TURN servers before.

W4 Cloud includes a WebRTC signalling server and STUN servers at no additional cost!

However, if two game clients aren’t able to connect directly to each other (this can be due to certain kinds of routers that STUN can’t punch through), then you’ll also need access TURN servers to relay the traffic.

Somehow I never heard or read anything about W4 Cloud it since it was announced.

I will save this for the future! This looks like a really good read. :blush:

1 Like

Would UPnP IGD be enough for your purposes? I suppose it’s not quite as universally supported as traditional punchthrough, but AFAIK it’s fairly widely available and might be easier to integrate than other options.

Thanks.

I’m unaware of W4 Cloud.

Is there a Godot plugin?

There’s something even better: built-in godot functionality.

1 Like

THANK YOU SO MUCH @ezcha!!!

These bash commands were actually the missing piece I needed to finish Monkanics’ relay server!!!

IT FINALLY WORKS NOW!

2 Likes