Well, if you define a network port “xxx” in your Nomad job file, Nomad will create an environment variable NOMAD_IP_xxx, which contains the external IP of the Nomad host.
As long as Consul is running on the same machine, this is also the IP address of the Consul instance.
Just add the Consul port and your app should be able to communicate with Consul. Something along the lines of
{{ env “NOMAD_IP_xxx” }}:8500
when you create to config file for your app via templating.