Hi, I am having problems when using transport package in android for my game client, it says the following exception:
AndroidPlayer(ADB@127.0.0.1:34999) Exception: Could not bind socket
at Unity.Networking.Transport.BaselibNetworkInterface.Initialize (Unity.Networking.Transport.INetworkParameter[] param) [0x00107] in C:\workspace\NaiveNetworkGame\Client\Library\PackageCache\com.unity.transport@0.4.0-preview.3\Runtime\BaselibNetworkInterface.cs:197
at Unity.Networking.Transport.NetworkDriver..ctor (Unity.Networking.Transport.INetworkInterface netIf, Unity.Networking.Transport.INetworkParameter[] param) [0x00079] in C:\workspace\NaiveNetworkGame\Client\Library\PackageCache\com.unity.transport@0.4.0-preview.3\Runtime\NetworkDriver.cs:480
at Unity.Networking.Transport.NetworkDriver.Create (Unity.Networking.Transport.INetworkParameter[] param) [0x00001] in C:\workspace\NaiveNetworkGame\Client\Library\PackageCache\com.unity.transport@0.4.0-preview.3\Runtime\NetworkDriver.cs:454
at Client.ClientNetworkSystem+<>c__DisplayClass0_0.<OnUpdate>b__0 (Unity.Entities.Entity e, Client.NetworkManagerSharedComponent managerSharedComponent, Client.ClientStartComponent& s) [0x00021] in C:\workspace\NaiveNetworkGame\Client\Assets\Scripts\Client\ClientNetworkSystem.cs:39
at Unity.Entities.EntityQueryBuilder.ForEach[T0,T1] (Unity.Entities.EntityQueryBuilder+F_ESD`2[T0,T1] action) [0x000ea] in C:\workspace\NaiveNetworkGame\Client\Library\PackageCache\com.unity.entities@0.14.0-preview.18\Unity.Entities\EntityQueryBuilder_ForEach.gen.cs:2765
at Client.ClientNetworkSystem.OnUpdate () [0x0000e] in C:\workspace\NaiveNetworkGame\Client\Assets\Scripts\Client\ClientNetworkSystem.cs:30
at Unity.Entities.ComponentSystem.Update () [0x0005e] in C:\workspace\NaiveNetworkGame\Client\Library\PackageCache\com.unity.entities@0.14.0-preview.18\Unity.Entities\ComponentSystem.cs:107
at Unity.Entities.ComponentSystemGroup.UpdateAllSystems () [0x0009c] in C:\workspace\NaiveNetworkGame\Client\Library\PackageCache\com.unity.entities@0.14.0-preview.18\Unity.Entities\ComponentSystemGroup.cs:513
UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
Sorry for sharing all my personal folders there :S
I checked the AndroidManifest and this permission is automatically added by Unity, so it shouldnt be the issue:
<uses-permission android:name="android.permission.INTERNET" />
When I compile with IL2CPP, the exception is cleaner I believe:
8-26 22:22:05.044 15194-15211/com.Gemserk.NaiveNetworkGame.Client E/Unity: Exception: Could not bind socket
at Unity.Networking.Transport.NetworkEndPoint.get_LoopbackIpv4 () [0x00000] in <00000000000000000000000000000000>:0
at Unity.Networking.Transport.NetworkDriver.Create (Unity.Networking.Transport.INetworkParameter[] param) [0x00000] in <00000000000000000000000000000000>:0
at Unity.Networking.Transport.NetworkDriver.Create (Unity.Networking.Transport.INetworkParameter[] param) [0x00000] in <00000000000000000000000000000000>:0
at Client.ClientNetworkSystem+<>c__DisplayClass0_0.<OnUpdate>b__0 (Unity.Entities.Entity e, Client.NetworkManagerSharedComponent managerSharedComponent, Client.ClientStartComponent& s) [0x00000] in <00000000000000000000000000000000>:0
at Unity.Entities.EntityQueryBuilder+F_ESD`2[T0,T1].Invoke (Unity.Entities.Entity entity, T0 s0, T1& d1) [0x00000] in <00000000000000000000000000000000>:0
at Unity.Entities.EntityManagerManagedComponentExtensions.SetComponentData[T] (Unity.Entities.EntityManager manager, Unity.Entities.Entity entity, T compon
Hope you can help me, thanks!