Unity-Technologies / multiplayer-community-contributions

Community contributions to Unity Multiplayer Networking products and services.
MIT License
421 stars 161 forks source link

Error when trying to StartHost #197

Open Marc477 opened 1 year ago

Marc477 commented 1 year ago

Did a WebGL build with a relatively simple test project, using WebSocket transport. Netcode 1.0.2, Unity 2020.3.37

I set the port to 7700 and the ConnectAddress to "0.0.0.0" to listen to all.

When I call NetworkManager.StartHost(), i get this error:

SocketException: mono-io-layer-error (0) at System.Net.Sockets.Socket..ctor (System.Net.Sockets.AddressFamily addressFamily, System.Net.Sockets.SocketType socketType, System.Net.Sockets.ProtocolType protocolType) [0x00000] in <00000000000000000000000000000000>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <00000000000000000000000000000000>:0