我正在通过电子应用程序在本地计算机上使用pouchdb,我想使用系统IP地址与其他计算机协作。我总是收到404错误。
我在电子应用程序中将Couchdb用于服务器和pouchdb
对于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.
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句