- Home /
Server hosting game
So, we're currently making a game, which should be hosted by a server. I have come to understand (Though i'm probably wrong), that i can make this purely with unity. So i have builded an .exe for the server to run. However, i am VERY inexperienced with servers, and as such i have no idea how to (if it's possible at all), to make the server run an exe file. I have also heard the term "Dedicated server" been used, and to be honest, i don't know what that is, does these two things relate?
A dedicated server is one which only runs the game server. A non-dedicated server usually means it's another player acting as the server but he'll be playing at the same time. It depends on the type of game you're making, if it's only a few players you probably wont need dedicated servers. If it's a large FPS then you'll most certainly want to use a dedicated server.
Answer by qJake · Jul 16, 2010 at 12:45 AM
Servers are just computers. If it runs Windows, it can run the game .exe file. Be sure your server has enough graphics power to handle running the game if you have 3D rendering enabled on the server.
Linux servers cannot be made with Unity (unless you run them with WINE, but that's probably not a great idea). And if, for some strange reason you have an OSX server, you can run the OSX-built binary (.app) that Unity creates as the server. Windows and OSX clients will be able to play on the same server.
Unity uses its own networking, but if you want to, you can create your own server in whatever language you want, and then you can (instead of using Unity's Network Views), code your own networking into your game that works with the server you've created. You're then free to use whatever software you want as the server for your game (Perl, Python, C++, C#, Java (not Javascript), or whatever).
A dedicated server typically utilizes a Client-Server architecture, where you have a (dedicated) server running somewhere that is NOT also a game. Other clients then connect to the server and play the game.
A Local server that still uses the Client-Serverarchitecture is when you run an instance of the game that doubles as the server for the game. A great example of this technology is the Source engine, which has the capability to run either a local server or a dedicated server.
The other way you can run a server is using a Peer-to-Peer architecture. In this instance, the game contains both "server" and "client" code, and two players can connect to one another and play against each other using exactly the same game code, without any real server.
thanks very much! However, once i have transfered the .exe file to the server, how will i make the server run my exe file?
I already told you. The server is just a computer that you access remotely. If you don't have a Windows server, you can't. If you have a Windows server, just run the EXE like normal. Servers are no different from regular computers. And if you don't even know what you have installed on your server...well...perhaps you shouldn't be running the server in the first place then.
Your answer
Follow this Question
Related Questions
multiplayer customer client server code. lag issues with very straight forward code?? 0 Answers
Need suggestion about connection flow between client, server and database for online game 1 Answer
Character Animation Lags in Multiplayer 2 Answers
Client with authority can't send information to server 0 Answers