Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • 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 Hunter4854 · Dec 04, 2013 at 08:47 PM · networkingmultiplayermasterserver

Multiplayer Networking in Unity?

I am very new to unity. This will be my third day to play around with everything it has to offer. I saw some examples of how to make a multiplayer with unity, but i was getting confused on how the client and server work. On almost all tutorials, i saw that a client Hosted the game instead of a main server. To prevent some hacking, i would like to use a Dedicated Server to host multiple server, or lobbies. Is there a way to build an server.exe and have it run on the command line. I would use each mini-server on a Virtual Machine. And then the games connect to that one server. I also have heard of a "Master Server" that connects clients to a specific server. Since i want to have a cluster of server, hosting many game lobbies (Like Call of Duty), this sounds great. How would i do and and how would i get the kills of each player and save it into a Database? Thanks!

Comment
Add comment · Show 2
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 Statement · Dec 04, 2013 at 10:04 PM 0
Share

Also good to know: The default networking system Unity provides with is optional. Check out WWW and TcpClient for hints. The wiki has one example in php to send data to a database. There are also a ton of addons to Unity that provide networking plugins.

avatar image nastasache · Dec 04, 2013 at 10:37 PM 1
Share

Regarding using masterserver and server.exe on dedicated machine, take a look at FPShootNet documentation.

1 Reply

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by xt-xylophone · Dec 04, 2013 at 10:34 PM

This is a lot of requirements. Have you made multilayer games before? If this is your first time and you are new to Unity I would recommend against this plan. Start smaller. If the smaller is easy then you can move up quickly. If smaller is hard, go smaller until its easy then work up.

Yes you can do all of the above though by the way. You also do not need to use Unity's default networking solution, there are many others out there such as photon and smartfox. I found photon good for starting out as a beginner.

However hard you think networking a game is, it is much more involved and complex than that. I dont want to scare you away from doing it though! Once you get the hang of the basics you can make some simple fun stuff really quickly but if you jump to AAA level game networking it will kill your enthusiasm much faster

Comment
Add comment · 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

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.

Follow this Question

Answers Answers and Comments

19 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Unity networking tutorial? 6 Answers

How to instatiate two players simultaneoulsy before loading level 1 Answer

Proper way to handle Master Server and NAT 0 Answers

Unity Multiplayer Design. Is it complicated to implement and learn? 1 Answer

is there a way so that i dont have to buy a game server for my multiplayer game? 3 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges