title: ElasticSearch instance not reachable from outside the server - Azure Windows 2012
body: <p>I have set up Elastic Search 2.3.0 as a service in an Azure VM with Windows Server 2012 R2. I can access elastic search instance from within the server using </p>
  
  <pre><code>http://localhost:9200
  </code></pre>
  
  <p>but I cannot access from outside the server. </p>
  
  <p>What have I tried?</p>
  
  <ul>
  <li>Just for testing I have made the VM available outside the virtual network. </li>
  <li>Opened up the port 9200 in Windows Firewall settings as an Inbound Traffic rule</li>
  <li>Added an endpoint in Azure portal settings opening up port 9200</li>
  </ul>
  
  <p>Tried this with VM Classic as well.</p>
  
  <p>Also for testing whether the VM is alright, I had set up IIS in that machine, opened up the port 80. The default IIS page is accessible from outside.</p>
  
  <p>Only thing I have not tried is setting ES in a Linux VM.</p>
  
  <p>I can't find anything in the elasticsearch logs. On the browser (Chrome), there are no logs in the Network. It just spins, waiting for the server, and snaps with "ERR_EMPTY_RESPONSE".</p>
  
  <p>Can anybody that had done this shed some light please?</p>
  
  <p>UPDATE:
  Here is what I can see in netstat:</p>
  
  <pre><code>TCP    127.0.0.1:9200         machine-name:0       LISTENING
  TCP    127.0.0.1:9300         machine-name:0       LISTENING
  </code></pre>