mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Document transport configuration changes
Part of #333 Transports are components now. Configure port and address in the transport components.
This commit is contained in:
parent
ea24a256f7
commit
a47a637ded
@ -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.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user