Setting environment variable for host and port

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.

Hi @shoryavj if you have a consistent IP to use for local development, you probably want to drop something like:

 export NOMAD_ADDR=http://192.168.100.12:4646

into your .bashrc file (or the profile for whatever shell you’re using).