title: no route to host
body: <p>I wrote an app on my phone with Android. I'm debugging it on phone. I try to connect to a server written in C#, but every time I try to connect, I have exception:</p>
  <blockquote>
  <p>EHOSTUNREACH (No route to host)</p>
  </blockquote>
  <p>I add to manifest:</p>
  <pre><code>&lt;uses-permission android:name=&quot;android.permission.INTERNET&quot; /&gt;
  &lt;uses-permission android:name=&quot;android.permission.ACCESS_WIFI_STATE&quot; /&gt;
  &lt;uses-permission android:name=&quot;android.permission.INTERNET&quot;/&gt;
  &lt;uses-permission android:name=&quot;android.permission.CHANGE_WIFI_STATE&quot; /&gt;
  </code></pre>
  <p>My code to connect:</p>
  <pre><code>try {
          InetAddress serverAddr = InetAddress.getByName(IP);
          int PortI = Integer.parseInt(Port);
          socket = new Socket(serverAddr, PortI);
  }
  </code></pre>