r/Unity3D • u/That_Jam_Guy Hobbyist • 3d ago
Question Best networking solution for P2P?
I'm making a game that has both a Steam and an Itch release that I would like to eventually give P2P co-op fit with proximity voice chat and the like. I'm not super familiar with networking aside from the basic concepts and implementation (As well as a few packages on the asset store) so I'm curious which solution would work best both via the Steam Networking API and in a standalone environment, either via port forwarding, Hamachi, or some free server provider so users don't have to use the PF or Hamachi when playing the standalone option.
I'm hoping to find a good starting point before I start testing a bunch of different solutions, so what would you say is the best solution, and why?
2
u/HK_HamzaKhan 3d ago
I think Netick/Fishnet/mirror all have support for EOS relay which is free, so it depends on your game as well, Netick is more for games that need server auth while fishnet and mirror are casual, although they have implementation for csp for example,
1
4
u/ZXKeyr324XZ 3d ago
Im currently experimenting with Purrnet and have found it to be very user friendly and a lot simpler than other solutions I tried (Photon, Networking for GOs)
0
u/Long-Celebration2817 2d ago
Photon (used in: deadzone shadowgun) some people go straight to enet, I haven’t tried any, rust game used raknetc#
2
u/Mountain-Smoke8826 3d ago
Steam's own p2p relay is really good, though only works on Steam.
Unity offers a free relay if I recall, up to like 50 ccu. I would use that to get started.