我正在通过电子应用程序在本地计算机上使用pouchdb,我想使用系统IP地址与其他计算机进行协作。我总是遇到404错误。
我在电子应用程序中将长沙发用于服务器和pouchdb
答案 0 :(得分:1)
对于Linux用户
/usr/local/etc/couchdb/local.ini
对于Windows用户
C:\Program Files\CouchDB\etc\couchdb\local.ini in Windows
更改为local.ini文件
[httpd]
bind_address = 127.0.0.1
to
[httpd]
bind_address = 0.0.0.0
确保转到
localhost:5984/_utils
在您的本地主机中,选择设置-> bind_address应该为0.0.0.0
防火墙可能会阻止您的端口
允许特定端口5984
入站设置
go to ->Windows Firewall->Advanced settings->Inbound Rules->New Rule
click port and next
Click either TCP or UDP.
Specific local ports.
Type a port number
Click Next
Click Allow the connection.
Click Next.
Click any network types you'd like to allow the connection over.
Click Next.
Type a name for the rule.
then finish.