Connect to elasticsearch running on virtual machine

I have an instance of elasticsearch running on a virtual machine on my laptop. How do I connect other devices to it? I am unable to do so by using 127.0.0.1 or the ip address of the VMWare machine along with port 9200.