title: Test mobile web app in mobile device's browser using localhost
body: <p>I want to test a mobile web app on mobile device. I am currently developing my mobile web app. It is still on my local environment i.e. <code>localhost:8080</code>. Now I want to use same hostname and port to access this web app on my mobile device. I need this because my mobile web app is also using <code>HTML5 Accelerometer API</code>. I need to test if it is working. I can use google chrome dev tools to emulate responsiveness but I need to test it on real device.</p>
  
  <p><strong>How can I test it on both Android and iPhone?</strong></p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>Below is my nodejs server code</p>
  
  <pre><code>'use strict';
  
  var express = require('express');
  var app = express();
  
  app.use(express.static('./dist'));
  
  console.log('\n0.0.0.0:8000\n');
  
  app.listen(8000, '0.0.0.0');
  </code></pre>