Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 Spacejet13 · May 04, 2018 at 02:45 AM · networkingmultiplayerserveronlinematchmaking

Making own server instead of using unity matchmaking and relay servers?

Hi. This is my first time into multiplayer games, and I wanted to try and create a server for matchmaking as I don't have funds for unity's multiplayer service. So I just wanted to ask how I can create a server for my game, and host it on that server instead of unity's servers. I am using uNet for the networking part. Any alternatives to unity's matchmaking service, which is free, is also greatly appreciated(though i doubt there will be one :) ). Please do let me know if you know how to create a server for matchmaking, cause I can't seem to find any information on it anywhere. Thanks for all the help!


Ps.. I am ridiculously new to networking and servers and whatnot :)

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

1 Reply

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

Answer by zakdank · May 04, 2018 at 05:02 AM

Just to Clarify; Creating a game server has nothing to do with matchmaking and you can create one using unity's network manager, see the api here. You can make it so a player simply enters an IP and they join their friend; you don't need unity matchmaker at all.


If you want to create a matchmaking server (i.e. a list of game servers running), you can do that by having a script use WWW (Api here) to retrieve the list from a remote database (mysql for example) via php. You would be best looking at some tutorials on having php interact with a remote database to get a general idea of what to do.


So the basic premise would be have a server script that sends the gameserver details such as the name and a unique id when the server is started and then have it update every X seconds with the player count etc using that unique id and then removes itself when the server stops. The client then retrieves this and puts it into a list. That would give you a basic server list. There are more things like removing servers that crashed and what not. Bear in mind, you will need a vps or dedicated server to host this which may be more expensive than unity matchmaking. Unity Matchmaking - if you switch to advanced calculator and look at 2000 monthly players (20CCU), it's only $6. If you have more than that, you are likely making enough to afford to pay for more.

Comment
Add comment · Show 3 · 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 Spacejet13 · May 05, 2018 at 11:19 PM 0
Share

Thanks a lot! It seems that if I want matchmaking, Unity matchmaking is the way to go! :)

avatar image zakdank Spacejet13 · May 09, 2018 at 05:32 PM 0
Share

Yeah, it may seem expensive when looking at it without funds but if you can generate some income, the price is more than reasonable.

avatar image Spacejet13 · May 05, 2018 at 11:20 PM 0
Share

I would rather my friends enter the ip

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

164 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 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 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 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 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 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 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 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 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

can i make a matchmaking without choose server 1 Answer

Detect active servers and join UNet 0 Answers

Getting server status and counting connected players from outside of the server with having the IP address 0 Answers

Networking - 1on1 based on Player's level 2 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