From a47a637deddfde969bbce6bd318fd4019cd11086 Mon Sep 17 00:00:00 2001 From: Paul Pacheco Date: Thu, 21 Feb 2019 10:03:43 -0600 Subject: [PATCH] Document transport configuration changes Part of #333 Transports are components now. Configure port and address in the transport components. --- docs/General/Migration.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/General/Migration.md b/docs/General/Migration.md index dc97b9074..636defaee 100644 --- a/docs/General/Migration.md +++ b/docs/General/Migration.md @@ -199,7 +199,15 @@ public override void OnServerAddPlayer(NetworkConnection conn, NetworkReader ext Note that in both UNet and Mirror the parameter "extraMessageReader" is optional. -### 10. Update your firewall and router +### 10. Pick your transport + +You can choose one of several transports in Mirror. Open your NetworkManager gameobject, in the inspector you will see a `TelepathyTranport` component by default. Drag in one of the available transports and remove `TelepathyTransport` if you wish to use a UDP based transport instead. + +### 11. Configure address and port + +In HLAPI, you configure the port and local address in the NetworkManager. One of our goals is to make Mirror transport independent. Not all transports need address and port. Some transports might even use more than one port at the same time, so these settings were inadequate. We removed the port and address and all other Network Info properties from NetworkManager, and we moved them to the transport components instead. + +### 12. Update your firewall and router LLAPI uses UDP. Mirror uses TCP by default. This means you may need to change your router port forwarding and firewall rules in your machine to expose the TCP port instead of UDP. This highly depends on your router and operating system.