My code
DontDestroyOnLoad(gameObject); clients = new List<ServerClient>(); disconnectList = new List<ServerClient>(); try { server = new TcpListener(IPAddress.Any, port); server.Start(); StartListening(); RegisterGameRequest req = new RegisterGameRequest { Build = "1.0", GameMode = "Classic", Region = Region.Japan,ServerHost = GetIP(),ServerPort = port.ToString() }; PlayFabServerAPI.RegisterGame(req, ServerRegisterCallBack, Error); } catch (Exception e) { Debug.Log("Socket Eroor : " + e.Message); }
and My error is just debug.log(obj.ErrorMessage)
I am passing all the necessary things and opening the port and the external IP also.Socket does not return an error in catch but still the server gives an error callback.