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
1
Question by chelog · Jun 24, 2015 at 04:48 PM · networkingmultiplayermasterservermaster server

Master server in UNET

Hello everyone. I've knda new in game developing but about a week ago I started trying to create multiplayer game. At first I set up the old Unity networking following tutorials and got it working with master server hosted on my dedicated machine but I noticed that I have many "legacy function" warnings so I decided to make a research. I found UNET and find it a way better and I set up a little 3D-platformer game with all necessary features.

But still I have one question: how do I make a game to use master server to register and find other servers? I do not want relayed connections and all these cloud services kindly brought to us by Unity, I know about matchmaking but I do like the old system.

Will old system like this work?

 MasterServer.ipAdress = "hostname.com";
 MasterServer.port = 8888;

As there are so many new classes, structs and functions I doubt about it. Thank you for any help.

Comment
Add comment · Show 5
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 iyakov · Jun 26, 2015 at 10:45 PM 0
Share

No one denies you combine both these systems :)

avatar image chelog · Jun 27, 2015 at 06:16 AM 0
Share

But... In these case won't I have different NetworkConnection and will methods like NetworkServer.Spawn(...) Work? Because even when I use $$anonymous$$asterServer I have a warning that this methods are deprecated, legacy. Are they compatible?

avatar image iyakov · Jun 27, 2015 at 06:21 AM 1
Share

You cannot mix them but you can use them simultaneously (i.e. you cannot connect with the first and use the second's functions withing the first's connection. Actually I am not sure but it makes sense). $$anonymous$$ake a try if it works, it's cool!

These functions marked as deprecated because they will be deleted in the future releases (e.g. in unity 6 :) )

avatar image chelog · Jun 27, 2015 at 06:28 AM 0
Share

Brrr, no, I want to keep my project updated :). Well... I hope I can at least make my own matchmaking server. Anyway, I'm looking for a solution in UNET.
Thank you for your reply anyway

avatar image zwoxy · Sep 27, 2016 at 06:33 PM 0
Share

I agree with you. The old system was better in some ways.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by tanoshimi · Jun 27, 2015 at 06:25 AM

Sure - here's a rewrite of the old Master Server to work with uNet instead: http://forum.unity3d.com/threads/master-server-sample-project.331979/

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

are you sure the server can be connected to? 1 Answer

Unity networking tutorial? 6 Answers

What are the options to distribute a final version of a multiplayer game? 1 Answer

Unity Network Tutorial Master Server Question 1 Answer

server connecting issue 1 Answer


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