Searching on the internet ive seen just LAN tutorials of mirror and i dont know if the is a way to connect to other device that is not with same network. I have tried changing networkadress, it works when creating but not when joining , networkadress is the same in the two devices, help pls.
- windows 10/11 pc firewall settings allow incomming Udp port i guess 7777 and if webgl Tcp Port, and connect from other devices using same router that shares dhcp names and local adresses at lan party
- by hosting server also posible through unity 3d editor as Tcp sockets (uncrypted) keep using adresses of lan router in example 192.168.0.101 , not localhost 127.0.0.1 <~~ instances are only monitor share !
- Tell us and community? 1 or 2 can help, can you now multiplay with other devices together using mirror in unity 3d, example tanks with lights
4.optional - mlapi has next level ssl as alternative that ticks --missing-demo-tanks requests community for dev webrtc/sockets and generate crypt certificates to use it in chrome as udp. sry if bug on display type.
ok, im using an ip like this example: 192.168.0.101 and when i try to join from other device, it just doesnt join, sorry im very beginner and i dont undertand too much.
Create the game script:
public void StartGame()
{
NetworkManager.singleton.networkAddress = GetLocalIPAddress();
NetworkManager.singleton.StartHost();
}
Join the game script:
public void JoinGame()
{
string ipAdress = inputTextJoin.text;
NetworkManager.singleton.networkAddress = ipAdress;
NetworkManager.singleton.StartClient();
}
Use NetworkManager Hud in Unity Editor Inspector as Gui to configure Port / protocol.
if you had a expert and allow public port forwording then others can use join, else in Lan/wifi.