MasterServer Usage

Hi,
i’ve already checked out like everything on the internet and in forums about Unitys MasteServer but it seems im too stupid to understand a vew things.

I am creating a multyplayer game, where 2 players should connect to a server and exchange data like attacking each other or moving around.
Am i right assuming that the players “only” have to connect to a masterserver (which is the host) as clients and start playing the game?

So this is what i’m trying to do:
I have downloaded the Master Server and Facilitator here-> http://unity3d.com/master-server
I open the files with MS visual and create a MasterServer.exe, same with Facilitator (not sure if i need it for testing on my local system).
Now if i run the MasterServer.exe, a console pops up and i guess i should see some traffic information if i run my game and connect to this local masterserver right?

I have looked up the documentation, but there is again something i dont understand:
Network.InitializeServer() lets the player “create a game” if i dont misunderstand this ( I have tried it out like this: Build the game and open up in 2 windows. One is calling Network.InitializeServer() the other Network.Connect() by clicking on the appropriate buttons. )
Now the 2nd “player” connects to the first one, i can see that with Network.connections.Length (the counter jumps from 0 to 1).
But they dont give a damn about the MasterServer that is running on my local system.
( So for preventing missunderstanding, again: The 2 players are just 2 running games on my computer and the master server i am running is on my computer too for testing. )

So in fact my problem is that i dont know if it is generally possible what i am trying to do or not. And if it is, then what am i doing wrong?

Can somebody wise me up pls.
sry for my bad english btw.
Michael

The masterserver is not a game server. It only lists active games.
When a server instance is started in Unity, you can register that instance with the masterserver.
When another user want’s to connect, it can retrieve a list of games from that masterserver and connect to one of the listed games.
The masterserver provides a way of connecting clients to servers.

Yeah thank you this helped me a lot. I was thinking about your answer the whole day and was trying out a few things. But now it seems to work :slight_smile:
How do i know i am still using unitys masterserver or the downloaded masterserver which is running on my local computer?

I think looking on your code for MasterServer.ipAddress

Indeed, if you don’t specify a masterserver ip address in your code, it will route to the default Unity one.
if you run your own, you need to specify that ip address in your code.

ok ty :slight_smile:

First: Just make a simple connection making a server and a client using ip
A simple example; This youtube video it help me a lot

[Unity for the Beginner] Basic Usage and Networking

I think you can make first a simple connection making a server and then a client that connect , caracter, etc with this video tutorial.
Unity Multiplayer Tutorial

Second: use Unity default Master Server for testing
I’m reading Unity multiplayer games, it’s new book. I think it can help you chapter 1.
It explains how to initialize a server and how to connect to a server.
to connect to a server you need the server ip
So is convenient to have a list of public servers and it’s ip.
" This is what the Master Server is for."
Where you can browse the server list including the number of players , maps and connect to a specific server.

Third: And last thing is to make your own Master Server for game production
I’m not able to do this and i wish to know more about it.

Thanks :slight_smile:
this is an amazing community here thank you all very much u are helping very well :slight_smile: