Getting “system.net.sockets.socketexception no such host is known” in Unity WebGL build

后端 未结 2 1859
南笙
南笙 2021-01-21 11:08

Hello and thank you for taking the time to look help me with my problem.

I have been working on a small webgl thing within Unity that will send the user an email after t

2条回答
  •  青春惊慌失措
    2021-01-21 11:39

    Due to security implications, JavaScript code does not have direct access to IP Sockets to implement network connectivity. As a result, the .NET networking classes (ie, everything in the System.Net namespace, particularly System.Net.Sockets) are non-functional in WebGL.

    According to unity Doc http://docs.unity3d.com/Manual/webgl-networking.html

    Hence the Error.

提交回复
热议问题