# FAQ > work in progress ### How do I use this feature?
How to Send/Sync custom data types? Mirror can automatically create Serialization functions for many custom data types when your scripts are compiled. For example, mirror will automatically create a functions for `MyCustomStruct` so that it can be sent without any extra work. ```cs [ClientRpc] public void RpcDoSomething(MyCustomStruct data) { // do stuff here } struct MyCustomStruct { int someNumber; Vector3 somePosition; } ``` For More details - [DataTypes](https://mirror-networking.com/docs/Guides/DataTypes.html) - [Serialization](https://mirror-networking.com/docs/Guides/Serialization.html)
### How to Connect
How to connect to games on same PC Make sure the networkAddress field on NetworkManager or the Hud is set up `localHost`
How to connect to a different PC/Device on same network 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 `
How to connect to a different PC/Device over the internet 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.