title: curl: (7) couldn't connect to host;Connection refused on openstack swift
body: <p>I'm trying to set up a 'Swift All In One' system on a Ubuntu 12.04 VM by the link:<a href="http://docs.openstack.org/developer/swift/development_saio.html" rel="nofollow">http://docs.openstack.org/developer/swift/development_saio.html</a>.<br>
  When I run the command <strong>on the VM</strong>:</p>
  
  <pre><code>curl -v -H 'X-Storage-User: test:tester' -H 'X-Storage-Pass: testing' http://127.0.0.1:8080/auth/v1.0
  </code></pre>
  
  <p>It works well,but if I change the address "127.0.0.1" into "192.168.254.129"(the VM ip address) and <strong>still</strong> run the command <strong>on the VM</strong>,like:</p>
  
  <pre><code>curl -v -H 'X-Storage-User: test:tester' -H 'X-Storage-Pass: testing' http://192.168.254.129:8080/auth/v1.0
  </code></pre>
  
  <p>it fails and hints "Connection refused".<br>
  I have tried to close the firewall on the VM and it doesn't work either.<br>
  In my opinion, the two commands should both succeed or fail, because both "127.0.0.1" and "192.168.254.129" refer to the same VM machine.<br> </p>