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.x
is working from my VMcurl -vvv 192.168.x.x:9200
is not working from my VMelasticsearch.yml
inside ES docker container was already havingnetwork.host: 0.0.0.0
written.- 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
- After changing
elasticsearch.yml
I am doingdocker restart ES-Container-ID
so that yml changes are read, but still not able to access ES from VM. - I have
openssh-server
installed on my VM
How can I achieve this ?