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

Jared Blackman 1 Reputation point
2020-04-15T09:26:58.91+00:00

I created a VM in Azure with an ip of 52.189.255.38. 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 http://52.189.255.38:9200 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,118 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Jonas Wilkening 6 Reputation points
    2020-04-16T08:13:36.527+00:00

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

    Edit: try changing it to 0.0.0.0

    0 comments No comments