- Home /
Server-Client Networking
I'm building a game that will have a separate Server Exe and multiple client Exes connecting to it (very similar to Minecraft networking). The game should be played online or across LAN.
What is the best way to achieve this kind of setup in Unity?
Answer by funkmaster5000 · May 12, 2013 at 02:42 PM
You don't have to write your own masterserver, because Unity provides one that you can build yourself and run on your own server (either rent one or set up one at your home)!
http://unity3d.com/master-server/index.html
This should help to get you going:
http://www.youtube.com/watch?v=1KIoGOYOUvk
http://answers.unity3d.com/questions/43440/setting-your-own-masterserver-up.html
Answer by oooooooooott · May 12, 2013 at 04:16 AM
It sounds like you are talking about a MasterServer. Well, you can write your own (Which is very complicated, and took Notch and co. about 2-3 years to do in Java, a largely easier to use language than C#) or use Unity's MasterServer, which is slightly less complicated and my personal recommendation, although it may be slightly less customisable than writing your own. For LAN, just check out the scripting documentation for Network.initialize
Your answer
Follow this Question
Related Questions
Im not being able to fill up variables with RPCs 1 Answer
Unity networking tutorial? 6 Answers
Server controlling Client- No errors in Console- LAN 0 Answers
Help with multiplayer connection 0 Answers