 <p>Found a workaround. I am using this method on ubuntu so paths may be different for other os.</p> <p>Go to <code>/usr/lib/node_modules/ionic/lib/ionic</code></p> <p>Open <code>serve.js</code> with root user.</p> <p>Find function called <code>IonicTask.prototype.getAddress</code></p> <p>Inside this function the value of variable <code>isAddressCmd</code> is false. Set it to true</p> <pre><code>self.isAddressCmd = false; </code></pre> <p>save the file. Now run <code>Ionic serve</code> for your project. This time it will ask for <code>localhost</code> vs <code>ip</code> again. </p> <p>After this remove the newly added code from <code>serve.js</code> otherwise <code>ionic serve</code> won't work.</p>