远程连接Neo4j服务器 [英] Remote connection to Neo4j server
问题描述
我相信创建远程连接的方法是通过更改conf/neo4j-server.properties
中的这一行,特别是通过删除注释并重新启动服务器.
I believe the way to creating a remote connection is by changing this line in conf/neo4j-server.properties
, specifically by removing the comment and restarting the server.
org.neo4j.server.webserver.address=0.0.0.0
我的URL是https://0.0.0.0:7473/browser/
并且可以在本地计算机上使用,但是当我在3G的iPhone上的Safari中测试URL时,它无法连接.
My URL is https://0.0.0.0:7473/browser/
and works on the local machine, but when I test the URL in Safari on iPhone over 3G, it cannot connect.
我在属性文件中将地址设置为什么?
What do I set the address to in the properties file?
我以为这是我的计算机的IP地址,但是尝试使用我从谷歌搜索"192.168.0.14
I thought it was the IP address of my computer, but after trying the remote address which I got from Googling "ip address mac" that didn’t work, nor did (obviously) the local IP address of my machine, 192.168.0.14
我应该指出,将其设置为Google的IP地址会引发错误,并且日志显示为:
I should point out that setting it to the IP address from Google throws an error and the log reads:
2015-01-29 17:10:08.888+0000 INFO [API] Failed to start Neo Server on port [7474], reason [MultiException[java.net.BindException: Can't assign requested address, java.net.BindException: Can't assign requested address]]
推荐答案
With default configuration Neo4j only accepts local connections
在neo4j-community-3.1.0
中编辑conf/neo4j.conf
文件,并取消注释以下内容以接受非本地连接
In neo4j-community-3.1.0
edit conf/neo4j.conf
file and uncomment the following to accept non-local connections
dbms.connectors.default_listen_address=0.0.0.0
这篇关于远程连接Neo4j服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!