Consul using local host 127.0.0.1

After setting the consul path to the correct place, the access was landing on local host consul. The poblem is with consul environment variable CONSUL_HTTP_ADDR.
No matter what, consul lookup always happen on CONSUL_HTTP_ADDR.

Reference

Written with StackEdit.