Failed connect to localhost:7474; Connection refused. Where is the neo4j-server.properties file?

Uriel picture Uriel · Apr 7, 2015 · Viewed 17k times · Source

I am trying to start my graph from Rstudio on Mac OSx, installed RNeo4j via devtools on (for R version 3.1.2) "startGraph("http://localhost:7474/db/data/")" and i received the following error:

"Error in function (type, msg, asError = TRUE) : Failed connect to localhost:7474; Connection refused"

It looks like it is an Error code: ERR_CONNECTION_REFUSED searching online, they recommend to modify conf/neo4j-server.properties file. But cannot seem to find the file to correct it.

Answer

fkpwolf picture fkpwolf · Aug 17, 2017

check conf/neo4j.conf, there is one line:

# With default configuration Neo4j only accepts local connections.
# To accept non-local connections, uncomment this line:
dbms.connectors.default_listen_address=0.0.0.0