I am running nomad on 192.168.100.12:4646 and not localhost. I have to again and again run export NOMAD_ADDR = http://192.168.100.12:4646. to even run a job. Otherwise it thows the error -
Error submitting job: Put http://127.0.0.1:4646/v1/jobs: dial tcp 127.0.0.1:4646: connect: connection refused.
Where do I need to set NOMAD_ADDR = http://192.168.100.12:4646 and how.