Hi All,
I’m trying to receive data over UDP on my Windows Store Apps plugin. When the application tried to bind the socket I get the following error:
I have set the Capabilities to InternetClient, InternetClientServer, PrivateNetworkClientServer from within the Publishing Settings in Unity.
My code for connecting looks like this:
public async void Start()
{
socket = new DatagramSocket();
socket.MessageReceived += socket_MessageReceived;
try
{
await socket.BindEndpointAsync(null, config.Port.ToString());
}
catch (Exception e)
{
Debug.Log(e.ToString());
Debug.Log(SocketError.GetStatus(e.HResult).ToString());
return;
}
}
Anyone have any idea what I need to change to give my application permissions to receive data on UDP? Or if I’m doing something wrong here in my code?
Thanks
- Simon