Windows firewall blocking tcp port even with an exception rule
<p>I'm developing an Android app that communicates with a desktop .NET application through tcp sockets. But I'm facing an issue with computer's firewall. The applications act both as servers and clients, and they listen to port 50655.</p>

<p>The communication is working, I can successfully send a tcp message from Android to PC, and from PC to Android, but only <strong>as long as the Firewall is disabled</strong>. </p>

<p>If I turn on the firewall, the PC can still send messages to Android, but the Android application throws a timeout exception on the creation of the socket:</p>

<pre><code>Socket s = new Socket("192.168.1.116", 50655); // This times out when Firewall is active
</code></pre>

<p>And yes, I have added a firewall exception for this port:</p>

<p><a href="https://i.stack.imgur.com/p8Gmw.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/p8Gmw.jpg" alt="enter image description here"></a></p>

<p>I have worked with TCP communication before, but I just can't figure this one out... Have anyone else experienced something like it? Am I missing something here?</p>