mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
Update FAQ.md
This commit is contained in:
parent
aec9b8a2ec
commit
5a95ae6fe3
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
> work in progress
|
> work in progress
|
||||||
|
|
||||||
|
### How do I use this feature?
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>How to Send/Sync custom data types?</summary>
|
<summary>How to Send/Sync custom data types?</summary>
|
||||||
|
|
||||||
@ -26,3 +28,53 @@
|
|||||||
- [DataTypes](https://mirror-networking.com/docs/Guides/DataTypes.html)
|
- [DataTypes](https://mirror-networking.com/docs/Guides/DataTypes.html)
|
||||||
- [Serialization](https://mirror-networking.com/docs/Guides/Serialization.html)
|
- [Serialization](https://mirror-networking.com/docs/Guides/Serialization.html)
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
|
||||||
|
### How to Connect
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>How to connect to games on same PC</summary>
|
||||||
|
|
||||||
|
Make sure the networkAddress field on NetworkManager or the Hud is set up `localHost`
|
||||||
|
</details>
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>How to connect to a different PC/Device on same network</summary>
|
||||||
|
|
||||||
|
Set the networkAddress field to the LAN IP of the host `192.168.x.x`
|
||||||
|
|
||||||
|
*In some cases you may need additional steps, check below*
|
||||||
|
|
||||||
|
To check ip on Windows you can open powershell and use the `ipconfig` command, then under your current adapter (ethernet/wifi/etc) look for `IPv4 Address`
|
||||||
|
|
||||||
|
` IPv4 Address. . . . . . . . . . . : 192.168.x.x `
|
||||||
|
</details>
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>How to connect to a different PC/Device over the internet </summary>
|
||||||
|
|
||||||
|
Set the networkAddress field to be the IP address of the host (google 'whats my IP')
|
||||||
|
|
||||||
|
> This section does not cover relays/dedicated vps/headless features
|
||||||
|
|
||||||
|
For this to work, you will need to do **some** of the following, most of these depend on your set up and router
|
||||||
|
|
||||||
|
- **Port forward**: you'll have to login your Router
|
||||||
|
- Either forward your game port (default is 7777) for your PC's local IP. (192.168.1.20 for example)
|
||||||
|
- Or the quick (but less safe) add that local IP to DMZ.
|
||||||
|
|
||||||
|
- **PC Firewalls**:
|
||||||
|
- You can turn it off for a quick test (And turn it back on later)
|
||||||
|
- manually allow the editor and any builds you create it in firewalls settings.
|
||||||
|
|
||||||
|
- Try from a build rather than the Unity Editor
|
||||||
|
|
||||||
|
- Some anti virus/phones may have additional blocking.
|
||||||
|
- You can turn it off for a quick test (And turn it back on later)
|
||||||
|
|
||||||
|
- In rare cases ISPs or companies/schools block ports and connections, this is harder to adjust yourself.
|
||||||
|
|
||||||
|
If you need more help it is best to google for guide for your setup and router.
|
||||||
|
|
||||||
|
An alternative to the above is to use a dedicated server (vps) or use a relay.
|
||||||
|
</details>
|
||||||
|
Loading…
Reference in New Issue
Block a user