Unity TCP socket connection not working on Mac OS X
<p>I'm trying to publish my Unity multiplayer game to Mac App Store, but by some reason in production the socket fails to connect to server, throwing the following exception:
 "<strong>Access denied System.Net.Sockets.Socket.Bind</strong>".</p>

<p>I have "<strong>com.apple.security.network.client</strong>" and "<strong>com.apple.security.app-sandbox</strong>" entitlement, but it does not work. HTTP requests work OK though. 
If I test the app in debug build - it works..what could be blocking it ? The port I'm using is 16005</p>

<p>This is the client connection code:</p>

<pre><code>var tcpClient = new TcpClient();
tcpClient.Connect(Host, Port);
networkStream = tcpClient.GetStream();
listenThread = new Thread(ListenToServer);
listenThread.Start();
</code></pre>

<p>Any ideas ?</p>