Firewall blocking Android <p>I wrote an application using a lightweight http server in c# called nancyfx. the problem is that i can call the framework from the browser(localhost and from LAN pc) but android (also LAN) gets blocked.</p> <pre><code> String url = "http://192.168.178.35:8080/issue"; HttpClient client = new DefaultHttpClient(); HttpGet get = new HttpGet(url); HttpContext localContext = new BasicHttpContext(); HttpResponse res = client.execute(get, localContext); </code></pre> <p>It gets stuck in the execute method and looks like its waiting for a timeout. Then comes the http exception HttpHostConnectionException: connection refused.</p> <p>If i turn off windows firewall it works. I also added a firewall rule for the program just in case. </p> <p>Are there any special rules for Android devices?</p>