Curl: (7) couldn't connect to host

I was unclear probably. I can't tell without seeing your elasticsearch.yml file.

Copy its content here unmodified and apply on it the formatting tool (</> icon) or share the raw file on gist.github.com.