title: Setup localhost server on iOS device
body: <p>I have seen several iOS apps using a localhost such as </p>
  
  <pre><code>    http://localhost:12345
  </code></pre>
  
  <p>Which is accessed through Safari.</p>
  
  <p>Any ideas about how this can be achieved ?</p>
  
  <p>Thank you in advance.</p>
  
  <p>Edit : </p>
  
  <p>I just found CocoaHTTPServer at <a href="https://github.com/robbiehanson/CocoaHTTPServer" rel="nofollow">https://github.com/robbiehanson/CocoaHTTPServer</a> that seems to do that.</p>