title: How to access elasticsearch from Linux Guest (Virtualbox) to OSX Host?
body: <p>As the question states, if I have a linux/centos VM in virtualbox, how do I go to:</p>
  
  <p>10.0.0.1:9200 to access elasticsearch?</p>
  
  <p>On the guest, I am getting a "Connection timed out error".
  From my OSX host, I can see elasticsearch is running with "localhost:9200". I can tell Apache is accessible from the Linux guest because 10.0.0.1 shows the apache webpage fine. In my OSX configuration, I have "Web Sharing" enabled, which is why I assume that the guest is able to access port 80, but what about elasticsearch?</p>
  
  <p>I tried:</p>
  
  <ol>
  <li>sudo ipfw add 7000 allow tcp from any to any dat-port 9200</li>
  </ol>
  
  <p>Logged out, the logged back in. Still getting a "The connection has timed out" in guest CentOS VM.</p>
  
  <ol>
  <li>Drag the /usr/local/Cellar/elasticsearch/bin/elasticsearch into the 
  "System Preferences" -> "Security" -> "Firewall"</li>
  </ol>
  
  <p>Still getting a "The connection has timed out" in CentOS VM.</p>
  
  <p>This feel like it should be something very simple.... note that elasticsearch was installed with homebrew.</p>