Connection error: An attempt was made to access a socket in a way forbidden

I am currently using Unity(not Pro) and SmartFoxServer2x to develop my multiplayer game for the Windows Store Apps.
My game works perfectly within the unity editor, however when make a Windows Store Apps build and open the project
that is created this is the issue I get when trying to connect to my server.

error “Connection error: An attempt was made to access a socket in a way forbidden by its access permissions *:9933 at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)\r\n at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)\r\n at System.Net.Sockets.Socket.Connect(IPAddress address, Int32 port)\r\n at Sfs2X.Core.Sockets.TCPSocketLayer.ConnectThread() ==> AccessDenied” string

Is there anyway I can fix this error?

It sounds like you haven’t given your app the appropriate permissions to use the Internet. Take a look at App capability declarations - Windows app development | Microsoft Learn - you probably need to add the internetClient capability.

-Kyle

Thanks for your help that was my issue.