Concourse CI Job can not curl to Service on host machine get Failed to connect to xxx.xxx.xxx. port 9090: No route to host

I have successful setup Concourse (5.7.1) on Ubuntu (16.04). Everything was find but after adding a script in deploy job to call an restful service running on same machine where concourse is installed, I got

error:Failed to connect to xxx.xxx.xx.xx port 9090: No route to host

I have been able to call the restful service from other sources.
I intercept the Job and i was not able to make make a call to the service but I was able to ping external calls

I think the best variant would be to setup dns resolution and pass that address to each concourse worker, that way you can rout the services based on names as needed. This might not be the simplest solution though.