title: Dial tcp 127.0.0.1:8500: getsockopt: connection refused in consul
body: <p>I am getting this error when I am running any <code>"consul members"</code> on consul server and clients. The port is in LISTENING state and I made sure there is no firewall blocking. I get this error when in run the same in the consul client: </p>
  
  <blockquote>
    <p>Error retrieving members: Get <a href="http://127.0.0.1:8500/v1/agent/members" rel="noreferrer">http://127.0.0.1:8500/v1/agent/members</a>:<br>
    dial tcp 127.0.0.1:8500: connectex: No connection could be made
    because the target machine actively refused it.</p>
  </blockquote>
  
  <p>When I make the above request with the private IP, I get the required output. Can I change the configuration anywhere so that it listens on the private IP for requests?</p>