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 /
This question was closed May 28, 2012 at 06:50 PM by KiraSensei for the following reason:

The question is answered, right answer was accepted

avatar image
1
Question by KiraSensei · May 20, 2012 at 06:34 PM · networkingnetwork

Communication in a network

Hello everyone !

I'm learning some interesting stuff on networking in Unity, but I am looking for a specific thing. Although I understand how a server and a client communicate (or clients between them), I need a precision.

I'm working on a little multiplayer FPS, and the player has two possibilities to begin a game : he can create a game (he'll be the server), or he can join a existing game (he'll be a client).

My problem is the following : when a player has created a game, how can the other players know that a game has been created (at this moment, in my opinion they are not yet connected to the server)? I would like to know how we can "see" an opened game in the network.

Thanks in advance !

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 flamy · May 20, 2012 at 06:39 PM 1
Share

take a look at master server from unity manual

1 Reply

  • Sort: 
avatar image
2
Best Answer

Answer by Bunny83 · May 20, 2012 at 07:08 PM

Correct ;) You can use the default Unity Masterserver, but for serious games you should host your own masterserver. Unity's master server is ment for development and was not very stable in the past.

The master server is of course only needed if your game should run across the internet. In a local area network you can also use normal .NET Sockets and send UDP broadcasts into the LAN. This might be a bit more complicated, but you don't have to rely on a internet connection. With a masterserver it's easier and it usually works in all setups (even in the webplayer, local and / or the internet).

Comment
Add comment · Show 4 · 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 flamy · May 20, 2012 at 07:29 PM 0
Share

btw you forgot to mention that master server source is available and it is free, from unity site :)

avatar image Bunny83 · May 20, 2012 at 07:40 PM 0
Share

:D if you read the whole page i've linked you should find all the necessary links ;) At the very bottom there's a link to the $$anonymous$$asterserver build page.

avatar image KiraSensei · May 20, 2012 at 09:01 PM 0
Share

I quickly read the page linked in Bunny83's comment, and I think it's exactly what I'm looking for ! Although my game was at first only for a local area network, i'll try this solution. Thanks again !

avatar image Bunny83 · May 20, 2012 at 10:55 PM 0
Share

You can connect locally at any time by using the local ip address of the PC that creates the server. Of course you have to type in the ip manually. Back the old days this was the usual way ;)

Follow this Question

Answers Answers and Comments

6 People are following this question.

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

Related Questions

Since switching to using offline & online scenes in the NetworkManager, Clients will not sync (UNET) 0 Answers

How do I send a simple Vector3 over a network? 1 Answer

Client disconnect due to error 0 Answers

Networking Player Nametag 1 Answer

Is there any way a "Failed to Connect to Master Server" error can happen other than the master server being down? 0 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