neo4jclient - Connecting to to neo4j on a different computer on the same network? -


we have local network here , on on 1 of computers have neo4j server installed. testing access computer on same network. struggling so?

do here in neo4j-server.properties file?

# let webserver listen on specified ip. default localhost (only # accept local connections). uncomment allow connection. please see # security section in neo4j manual before modifying this. org.neo4j.server.webserver.address=0.0.0.0 

what out in code access machine?

clientconnection = new graphclient(new uri("http://localhost:7474/db/data")); 

could this?

clientconnection = new graphclient(new uri("http://devpc1:7474/db/data")); 

in principal, trying correct. however, default neo4j listen on localhost (127.0.0.1) address.

to change this, close running instance , edit file conf/neo4j-server.properties in text editor.

if want server listen on ips assigned host machine (normally fine internal use), uncomment line removing hash:

#org.neo4j.server.webserver.address=0.0.0.0 

if want listen on specific ip, uncomment line , replace 0.0.0.0 ip want use.

after saving file, start neo4j instance again. should able access both web ui , api wrapper of choice.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -