Can't connect to remote elasticsearch node

I am trying to issue curl commands from a separate vm to my elasticsearch node

curl -XPOST 'vmWithESInstanceRunning.com:9200/bank/account/_bulk?pretty' --data-binary @accounts.json'

However I continually get

curl: (7) couldn't connect to host

My ES instance is running (when I got to localhost9200 on the vm where the elasticsearch instance is running I see information) and I can run the above curl command from said vm but I want to run it from a separate vm.

You'll likely need to setup port forwarding from the VM to the host machine, or from VM to VM by some kind of virtualized network. The docs for your VM software should discuss how to do that.