Oculus Go Network Issue on opening Socket
Hi,
I try to open a socket on my unity application but it fails.
The code can run on android device or unity player but not on oculus.
My code
Many thanks for help
PS : function used from prevous code
I try to open a socket on my unity application but it fails.
The code can run on android device or unity player but not on oculus.
My code
IPAddress ipAddress = this.LocalIPAddress();
IPEndPoint localEndPoint = new IPEndPoint(ipAddress, 11000);
try {Exception occured here => this.socketlistener = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);Exception => Protocol option not supported, it's socket exception
Log && Version
Log && Version
02-03 16:22:07.393 31073 31088 I Unity : Unity v2018.3.4f1, Oculus Utilities v1.32.0, OVRPlugin v1.32.0, SDK v1.1.19.0.
02-03 16:22:07.571 31073 31088 E Unity : Unable to find libc
02-03 16:22:08.317 31073 31088 E Unity : StartServer: Protocol option not supported
Many thanks for help
PS : function used from prevous code
private IPAddress LocalIPAddress() { if (!System.Net.NetworkInformation.NetworkInterface.GetIsNetworkAvailable()) { return null; }
IPHostEntry host = Dns.GetHostEntry(Dns.GetHostName());
return host .AddressList .FirstOrDefault(ip => ip.AddressFamily == AddressFamily.InterNetwork); }