• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Sander · Jul 15, 2010 at 08:57 PM · serverclientdedicated

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?

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image spinaljack · Jul 15, 2010 at 09:39 PM 0
Share

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.

1 Reply

· Add your reply
  • Sort: 
avatar image
3

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.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Sander · Jul 16, 2010 at 07:51 PM 0
Share

thanks very much! However, once i have transfered the .exe file to the server, how will i make the server run my exe file?

avatar image qJake · Jul 16, 2010 at 11:21 PM 0
Share

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

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

No one has followed this question yet.

Related Questions

Server-Client Networking 2 Answers

Unity Networking - Clients scattered around scenes 0 Answers

Dedicated Server In Seperate Project 2 Answers

How do i control An Object between Server and Client 0 Answers

Client movements not registering on Server 1 Answer

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges