danielwertheim

danielwertheim


notes from a passionate developer

Developer that lives by the mantra "code is meant to be shared".

Share


Tags


Disclaimer

This is a personal blog. The opinions expressed here represent my own and not those of my employer, nor current or previous. All content is published "as is", without warranty of any kind and I don't take any responsibility and can't be liable for any claims, damages or other liabilities that might be caused by the content.

CouchDB - Hyper-V

Daniel WertheimDaniel Wertheim

Tiny, little tip coming. If you as me, are setting up CouchDB on e.g Hyper-V on your local computer at home, you need to fix a three settings. Two of them are obvious, the third is a bit less obvious.

First – Firewall

By default CouchDB listens to port 5984. Ensure that is allowed as an inbound rule in your firewall.

Second – Configure CouchDB IP

By default, it’s setup to listen on 127.0.0.1. You have different options, very well documented here. I went with 0.0.0.0.

Third – Revisit that IP configuration

I got the CouchDB install to serve request in my browser, but failed using e.g. curl http://myhost:5984. Didn’t work in a little C# console application either. Pinging it showed the issue. The Windows 2012 R2 machine was using IPv6 and IPv4. Revisited the config file, changed to :: and I was done.

//Daniel

Developer that lives by the mantra "code is meant to be shared".

Comments