我們有一個本地網絡,並在其中一臺安裝了neo4j服務器的計算機上運行。現在進行測試,我想從同一網絡上的計算機訪問它。我正在努力這樣做?在同一網絡上的另一臺計算機上連接到neo4j?
我在neo4j-server.properties文件中做了什麼嗎?
# Let the webserver only listen on the specified IP. Default is localhost (only
# accept local connections). Uncomment to allow any connection. Please see the
# security section in the neo4j manual before modifying this.
org.neo4j.server.webserver.address=0.0.0.0
我的代碼中有什麼可以從該機器訪問它?
clientConnection = new GraphClient(new Uri("http://localhost:7474/db/data"));
我可以這樣做嗎?
clientConnection = new GraphClient(new Uri("http://DevPC1:7474/db/data"));