title: Failed to listen on localhost:8000 (reason: Cannot assign requested address)
body: <p>When I run <code>php artisan serve</code> on Ubuntu, the Laravel development server tries to start on <a href="http://localhost:8000/" rel="nofollow noreferrer">http://localhost:8000/</a> but fails with this error:</p>
  
  <blockquote>
    <p>[Mon Apr 25 10:28:08 2016] Failed to listen on localhost:8000 (reason: Cannot assign requested address)</p>
  </blockquote>
  
  <p>My hosts file (<code>/etc/hosts/</code>):</p>
  
  <pre><code>1 27.0.0.1   localhost 
  </code></pre>
  
  <p>How can this be fixed?</p>