Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cant access elasticsearch server that is running on VirtualBox

I installed elastic-search 1.4.3 by unzipping file into my virtualbox machine :

Distributor ID: Ubuntu
Description:    Ubuntu 14.04.1 LTS
Release:        14.04
Codename:       trusty

I can successfuly reach http://localhost:9200 from my console on the host machine.

But I cannot reach server from guest machine :

  • i added port forwarding rules on virtualbox (local 9200 -> server 9200)
  • tried to change network params in elasticsearch config file, but nothing change.
  • i stopped firewall on host (ufw disable)

nothing change i cannot access elasticsearch server from guest machine :

  • http://myserver:9200
  • http://localhost:9200

anyone can help me ? Thanks a lot

PS : i can hit http://myserver:80 from my guest machine successfully

like image 837
Damien Avatar asked Mar 17 '23 01:03

Damien


1 Answers

Please check params in

/etc/elasticsearch/elasticsearch.yml

network.host: 0.0.0.0
http.port: 9200

And port forwarding in VirtualBox.

like image 176
taraslayshchuk Avatar answered Apr 06 '23 17:04

taraslayshchuk