I’m running Event Store in a vm when I’m developing. The default binding to port 127.0.0.1 won’t work, since that only binds to the local interface, so that Event Store is only accessible from within the VM.
I changed it to --ip 0.0.0.0. That makes it bind to the external interface. But it seems the web server is a little bit too clever, so I get HTTP status code 400, with the body “Bad Request (Invalid host)”. I don’t actually have http://0.0.0.0:2112 in my browser, I use http://192.168.13:37:2112, which is the machine-local IP my VM is accessible from.
So I solved it by binding specifically to 192.168.13.37. Is it possible to make Event Store less clever in this regard, and skip the host header check completely?