title: Flutter http / rest server not accessible from outside Android
body: <p>I'm working on a project in which I need to communicate between an Android device and a computer. To initiate a connection between these two device I thought using a Rest API mechanism with the following architecture :</p>
  <ul>
  <li>Rest server : Android Device by using <a href="https://pub.dev/packages/jaguar" rel="nofollow noreferrer">https://pub.dev/packages/jaguar</a></li>
  <li>Rest client : my computer by using Python</li>
  </ul>
  <p>My current flutter snippet looks like :</p>
  <pre class="lang-dart prettyprint-override"><code>Jaguar server = Jaguar(port: 8080);
  server.get(&quot;/&quot;, (context) =&gt; 'Hello');
  await server.serve();
  </code></pre>
  <p>When accessing to &quot;localhost:8080&quot; from a web browser directly on my Android device, I get the &quot;Hello&quot; message but when trying to do the same thing from my computer (which is on the same network), I get a timeout error (on &quot;192.168.0.10:8080&quot;).</p>
  <p>It seems that my flutter (or my device) does not expose the web server to the rest of my network but I don't know why.. Do you have an idea ?</p>