Skip to content
This repository was archived by the owner on Jan 18, 2022. It is now read-only.

Updating the Locator port

Martijn Gerkes edited this page Nov 19, 2019 · 3 revisions

The following changes are only required if you use any version of the GDK for Unity that is <= 0.3.0.

Open your WorkerConnector classes, and make a change to all usages of the LocatorFlow. For example, in the Blank Project, you will have to update UnityClientConnector.cs.

https://github.com/spatialos/gdk-for-unity-blank-project/blob/6e509ac/workers/unity/Assets/BlankProject/Scripts/Workers/UnityClientConnector.cs#L28 From:

builder.SetConnectionFlow(new LocatorFlow(initializer));

To:

var locator = new LocatorFlow(initializer);
locator.LocatorPort = 443;
builder.SetConnectionFlow(locator);

You will also have to replace all usage of RuntimeConfigDefaults.LocatorPort in your own code with 443.

Clone this wiki locally