1

I have a setup of elasticsearch-7.14 on my windows10 local machine. I am able to access the elasticsearch [ES] url from local machine's browser on:

1. localhost:9200
2. 192.168.x.x:9200 [local machine IP]

But I am not able to access the ES (192.168.x.x:9200) from my hyper-V Ubuntu VM's (running on same machine ) browser.

Debugging:

  1. ES setup command: docker run --name es01-test --net elastic -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:7.14.0
  2. ping 192.168.x.x is working from my VM
  3. curl -vvv 192.168.x.x:9200 is not working from my VM
  4. elasticsearch.yml inside ES docker container was already having network.host: 0.0.0.0 written.
  5. I tried all combinations of configs in elasticsearch.yml answered in link-1 & link-2 but still not able to access ES from VM.
    transport.host: localhost 
    transport.tcp.port: 9300 
    http.port: 9200
    network.host: 0.0.0.0
  1. After changing elasticsearch.yml I am doing docker restart ES-Container-ID so that yml changes are read, but still not able to access ES from VM.
  2. I have openssh-server installed on my VM

How can I achieve this ?

Thor
  • 305
  • 1
  • 2
  • 11

0 Answers0