Cannot connect to server on VM despite being able to SSH into the VM and connect locally.

Jared Blackman 1 Reputation point

I created a VM in Azure with an ip of I can ssh into the VM. I installed ElasticSearch on the VM. I can access the ElasticSearch server on the VM via localhost on port 9200. I add an inbound rule on the NSG to open port 9200. And yet for some reason I cannot access the ElasticSearch server on over the internet. What gives?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,377 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Jonas Wilkening 6 Reputation points

    Can you send us your elasticsearch Config (elasticsearch.yml) ? Or check which host you have configured?

    Edit: try changing it to

    0 comments No comments