{"id":1938,"date":"2017-03-20T18:44:30","date_gmt":"2017-03-20T18:44:30","guid":{"rendered":"http:\/\/salientsoft.co.uk\/?p=1938"},"modified":"2018-10-10T17:15:57","modified_gmt":"2018-10-10T17:15:57","slug":"couchdb-access-issues-from-local-network","status":"publish","type":"post","link":"https:\/\/salientsoft.co.uk\/?p=1938","title":{"rendered":"CouchDb access issues from local network"},"content":{"rendered":"<p> I was unable to access a couchDb from another computer on the local network.<\/p>\n<p>There were 2 issues that needed resolving to address this:-<\/p>\n<p>1\/ By default, CouchDb binds to 127.0.0.1:5984, and therefore is only accessible if you use this address (i.e. the loopback adapter) explicitly. Other adapters, such as the lan adapter which has the local ip address, will not work, so you can\u2019t enter the server machine\u2019s own IP address as this won\u2019t work. To fix this, edit local.ini in &lt;couchdb home dir&gt;\/etc, and bind to 0.0.0.0 instead of 127.0.0.1, as&#160; follows:-<\/p>\n<p>&#160;<\/p>\n<blockquote>\n<p>[chttpd]     <br \/>port = 5984      <br \/>; Options for the MochiWeb HTTP server.      <br \/>;server_options = [{backlog, 128}, {acceptor_pool_size, 16}]      <br \/>; For more socket options, consult Erlang&#8217;s module &#8216;inet&#8217; man page.      <br \/>;socket_options = [{recbuf, 262144}, {sndbuf, 262144}, {nodelay, true}]      <br \/>bind_address = 0.0.0.0<\/p>\n<\/blockquote>\n<p>Note the use of the [chttpd] section in the ini file, <em>not<\/em> [httpd]<\/p>\n<p>Editing local.ini will override settings in default.ini, and these settings will also be preserved across upgrades, whereas edits to default.ini will not.<\/p>\n<p>This is described in this post <a href=\"http:\/\/stackoverflow.com\/questions\/11518990\/accessing-couchdb-futon-on-external-ip\">here<\/a>. Note that you can also edit configuration parameters in fauxton in the configuration section. Clicking on the value of a parameter will expose an edit box to allow changes.<\/p>\n<p>Once changes have been made you need to bounce the service.<\/p>\n<p>2\/ My other issue was to do with Kaspersky firewall settings. To ensure that you can access a machine from elsewhere on the lan, make sure your network type for the lan adapter is set to <em>trusted<\/em> and not public. <em>Public<\/em> will force you to enter explicit rules for every address\/application\/port etc. that you use, which is a complete pain on a lan. <em>Trusted<\/em> just allows all machines on the lan to interoperate freely. This is detailed <a href=\"https:\/\/support.kaspersky.co.uk\/12092#block2\">here<\/a> <em>under how to change the network status<\/em>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was unable to access a couchDb from another computer on the local network. There were 2 issues that needed resolving to address this:- 1\/ By default, CouchDb binds to 127.0.0.1:5984, and therefore is only accessible if you use this address (i.e. the loopback adapter) explicitly. Other adapters, such as the lan adapter which has [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[197,206],"tags":[40,16],"_links":{"self":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1938"}],"collection":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1938"}],"version-history":[{"count":3,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1938\/revisions"}],"predecessor-version":[{"id":1941,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1938\/revisions\/1941"}],"wp:attachment":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1938"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1938"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1938"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}