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:
- 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 ping 192.168.x.xis working from my VMcurl -vvv 192.168.x.x:9200is not working from my VMelasticsearch.ymlinside ES docker container was already havingnetwork.host: 0.0.0.0written.- I tried all combinations of configs in
elasticsearch.ymlanswered 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
- After changing
elasticsearch.ymlI am doingdocker restart ES-Container-IDso that yml changes are read, but still not able to access ES from VM. - I have
openssh-serverinstalled on my VM
How can I achieve this ?