- Home /
Is it possible to make a Multiplayer (1v1) game WITHOUT hosting servers?
I'm working on a turn-based multiplayer (1v1) game, and am curious if there is a way to allow both players into the same game (read: the same scene, idk if it makes a difference) without having to pay for servers or anything. I've never done anything multiplayer so I honestly don't even know where to begin.. Is it possible for Player 1 to "host" and Player 2 "join" on one of their networks, is there at least a way to TEST playing against myself in two separate instances of the application (LAN), etc?
Thanks for any and all help
Answer by Clet_ · May 22, 2014 at 12:07 AM
One player would be the server and the other would be the client. So you don't need a specific hosting machine to do so, Unity's built-in networking works pretty much that way.
If you every want to have dedicated servers later on, you just need to run the server code on a dedicated machine. Until then, one will be host and the other will be client
Unity has built-in networking? I'll have to look into that... Thank you for a great explanation
Answer by RetepTrun · May 22, 2014 at 12:41 AM
One of the players just has to run the server software which can be part of the game. Or make it splitscreen.
splitscreen isn't an option. The game is meant to be online multiplayer. But the first bit is very interesting, and a good explanation! Is this why "host" and "join" are usually different buttons in games? Host being the one that runs server stuff
Correct (in a general/traditional case).
So with friends I like to be host because my machine is faster and has better internet than thiers so less lag for all players.
Answer by Jeff-Kesselman · May 23, 2014 at 03:00 PM
Sure it is.
LAN games existed long before online games. On a LAN you can use simple multicast for game discovery.
BIut this does require you actually understand network programming.
Your answer
Follow this Question
Related Questions
UNet child objects: MonoBehavior or NetworkBehavior? 0 Answers
Best way to host Unity2D Game online with multiplayer 0 Answers
How many current players will I get daily if I have 10k installs 1 Answer
Should I be using peer-to-peer networking for my 1v1 game? 1 Answer
Multiplayer advanced - Single Player in Multiplayer game, using another Hosting services. 0 Answers