Hello i wanna know do i need to have a server to be able to make my game playable via online mulitplayer?I mean that a player can host a server/room from thier PCs and then other player can join and play?
One player is the host (server) and others can join them, or you can make a dedicated server if you want.
You don’t need to host a server, player can host the game and unet will connect them to avoid nat problems.
Depending on the title in question this can be a good option, for example in cooperative titles like The forest or Space Engineers. If you want a fps game this may not be the best idea.