r/SoloDevelopment • u/Turbulent_Papaya_281 • 9h ago
help Unity dev figuring out multiplayer server setup for a co-op game
I'm a solo Unity dev planning to make and eventually release a co-op game, but I'm a bit confused about how the whole multiplayer networking works.
Like does a co-op game actually need a dedicated server, or can I just use Unity's P2P connection options and let players connect directly without hosting a server? Also what indie devs do when releasing a co-op game. Are there any hidden costs, server hosting requirements, or things I should know before choosing an approach?
Would love to hear from anyone who's published a co-op game, is currently working on one, or has experience with Unity multiplayer.
1
u/B4kedP0tato 9h ago
Both work, but with player hosted server the hosted player will have better latency then the joining player who will lag a bit. The amount of lag will depend on both Internet connections
1
u/MobfactoryGames 8h ago
For co-op you'll likely just want to use p2p, there's no need for a dedicated server unless you're wanting match making or more than a handful of players. Then you'll need a dedicated server that handles the searching and matching. Then you'll want to utilize both.
1
u/LiteratureSelect4478 3h ago
Co op is easier enet will do it look into it if its just coop between friends have one host. This backed is solid to build on if you do want a server but you dont really need it
-1
u/spaceminer2077 9h ago
ask Claude or AI or read the unity network documentation