0
Hello, I have a connection problem in my multiplayer project. When creating a local match, everything seems to work fine, however, the console displays the following warnings
when I build and create the start by cell phone, and try to enter it by computer (which is in the same network), I get an error of timeout
I’ve tried everything, but the problem persists. Apparently this bug might be on creation of a host for starting.
Here’s the script I’m using to create the match:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Networking;
using UnityEngine.UI;
public class NetworkManager_Custom : NetworkManager {
public void StartupHost(){
SetPort();
NetworkManager.singleton.StartHost();
}
public void JoinGame(){
SetIPAdress();
SetPort();
NetworkManager.singleton.StartClient();
}
public void SetIPAdress(){
string ipAdress = GameObject.Find("ipInputField").transform.Find("Text").GetComponent<Text>().text;
NetworkManager.singleton.networkAddress = ipAdress;
}
public void SetPort(){
NetworkManager.singleton.networkPort = 7777;
}
}
By all indications, the application is awaiting local requests (127.0.0.1), justifies the place to work, so from another IP, it is not possible. Look for exposing the application to all Ips: 0.0.0.0
– Homer Simpson
Unfortunately, no IP seems to have worked, not even replacing local ip 127.0.0.1 with localhost.
– Lucas Campanelli