title: curl: (7) Failed to connect to ::1: Network is unreachable
body: <p>I get the above error when I type <code>curl http://localhost:8000/</code> in the terminal to run a python/tornado script.</p>
  
  <p>My curl version is 7.19.7. I have IPV6 disabled.  </p>
  
  <p>My /etc/hosts reads</p>
  
  <pre><code>127.0.0.1   localhost
  127.0.1.1   aniruddha-laptop
  
  # The following lines are desirable for IPv6 capable hosts
  ::1     localhost ip6-localhost ip6-loopback
  fe00::0 ip6-localnet
  ff00::0 ip6-mcastprefix
  ff02::1 ip6-allnodes
  ff02::2 ip6-allrouters
  ff02::3 ip6-allhosts
  </code></pre>
  
  <p>Output of <code>lsof | grep 8000</code></p>
  
  <pre><code>dbus-daem  1338  aniruddha   67u     unix 0xf2208000      0t0       8923 socket
  gconfd-2   1341  aniruddha   20u     unix 0xf2ab8000      0t0       7180 socket
  trashappl  1468  aniruddha   18u     unix 0xf4248000      0t0       8689 socket
  notificat  1478  aniruddha   14u     unix 0xf20a8000      0t0       8613 socket
  </code></pre>