I have a elasticsearch service running on MY_HOST_IP(10.x.x.xx) and port 9200. I am able to ping 10.x.x.xx from my VM, but when I try to connect elasticsearch it gives me :
no route to host exception.
Even when I telnet it gives me same error. I have reloaded my iptables but didn't get expected result.
Even curl command results in the same thing
curl -XGET "http://10.x.x.xx:9200"
no route to host
Also I am able to ssh from VM to my host machine .