Setting environment variable for host and port

I am running nomad on and not localhost. I have to again and again run export NOMAD_ADDR = to even run a job. Otherwise it thows the error -

Error submitting job: Put dial tcp connect: connection refused.
Where do I need to set NOMAD_ADDR = 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=

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