Legacy Documentation: Version 2017.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

NetworkMatch.baseUri

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

public var baseUri: Uri;
public Uri baseUri;

Description

The base URI of the MatchMaker that this NetworkMatch will communicate with.

The default address for the MatchMaker is mm.unet.unity3d.com Using this address will connect a client to the nearest datacenter geographically. However, because data centers are siloed from each other you will only see matches occuring inside your current data center. If a player of your game is traveling to another part of the world, for instance, they may interact with a different set of players that are in that data center. You can override this behavior by specifying a particular data center. Keep in mind generally as distance grows so does latency, which is why we run data centers spread out over the world.

To connect to a specific data center use one of the following addresses:

United States: us1-mm.unet.unity3d.com Europe: eu1-mm.unet.unity3d.com Singapore: ap1-mm.unet.unity3d.com.

Did you find this page useful? Please give it a rating: