`consul members` fails because it is querying the wrong port, how to tell it to use the right port?

Hi @jerrac,

The configuration files are only used when you run Consul as a daemon using consul agent. When the consul command is used in any other context, the configuration files are ignored.

You can use the -http-addr flag or CONSUL_HTTP_ADDR environment variable to change address that will be used to communicate with the Consul API. For example:

# Specify the HTTP API address using the -http-addr flag
$ consul members -http-addr=127.0.0.1:7500

# Specify the HTTP API address using the CONSUL_HTTP_ADDR environment variable
$ export CONSUL_HTTP_ADDR=127.0.0.1:7500
$ consul members