Great, thanks for the update. Michael
Am 18.03.2014 um 03:27 schrieb Reihane Boghrati <[email protected]>: > Hi again, > > I am now able to start Neo4j server from command line (Windows). My client > (on a different PC) connects to it using the following code snippet: > > restgraphDb = new RestAPIFacade("http://serverip:7474/db/data"); > > To make this function properly, I had to: > 1) make sure the firewall was configured correctly, > 2) Add the following line : > org.neo4j.server.webserver.address=0.0.0.0 > to the conf/neo4j-server.properties file. This file resides in the directory > where one unzips Neo4j. > > Best, > Reihane > > On Saturday, March 15, 2014 6:27:58 PM UTC-8, Michael Hunger wrote: > You can always connect to a running server either with the http api or the > shell, > > you could also do something like this: > > http://jexp.de/blog/2014/02/on-using-neo4j-shell-with-basic-auth-over-http-on-a-remote-server/ > > Am 16.03.2014 um 03:23 schrieb Reihane Boghrati <[email protected]>: > >> Oh, OK, thanks. >> But I'm wondering if there is any other way to start Neo4j from command >> prompt and still be able to connect to that by RestGraphDatabase. >> >> On Saturday, March 15, 2014 6:12:22 PM UTC-8, Michael Hunger wrote: >> Oh, sorry misread. >> >> The remote shell is not at all for RestGraphDatabase >> >> it is for the command line tool, that you can use with >> >> bin/neo4j-shell -host xxxx -port xxx >> >> if you cannot connect to your server from your client, check your firewall >> rules >> >> >> >> Am 16.03.2014 um 02:02 schrieb Reihane Boghrati <[email protected]>: >> >>> When I run the client with port 7474 it throws this exception: >>> >>> Exception in thread "main" >>> com.sun.jersey.api.client.ClientHandlerException: >>> java.net.ConnectException: Connection timed out: connect >>> at >>> com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:149) >>> at org.neo4j.rest.graphdb.UserAgent$1.handle(UserAgent.java:68) >>> at com.sun.jersey.api.client.Client.handle(Client.java:648) >>> at com.sun.jersey.api.client.WebResource.handle(WebResource.java:680) >>> at com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74) >>> at >>> com.sun.jersey.api.client.WebResource$Builder.post(WebResource.java:558) >>> at >>> org.neo4j.rest.graphdb.ExecutingRestRequest.post(ExecutingRestRequest.java:151) >>> at >>> org.neo4j.rest.graphdb.ExecutingRestAPI.query(ExecutingRestAPI.java:547) >>> at >>> org.neo4j.rest.graphdb.ExecutingRestAPI.query(ExecutingRestAPI.java:568) >>> at org.neo4j.rest.graphdb.RestAPIFacade.query(RestAPIFacade.java:235) >>> at >>> org.neo4j.rest.graphdb.query.RestCypherQueryEngine.query(RestCypherQueryEngine.java:50) >>> at Neo4j.Neo4jRestClient.clearDb(Neo4jRestClient.java:136) >>> at Neo4j.Neo4jRestClient.createSchema(Neo4jRestClient.java:1628) >>> at edu.usc.bg.base.DBWrapper.createSchema(DBWrapper.java:240) >>> at edu.usc.bg.base.Client.executeDoSchema(Client.java:1211) >>> at edu.usc.bg.base.Client.runBG(Client.java:890) >>> at edu.usc.bg.BGMainClass.main(BGMainClass.java:41) >>> Caused by: java.net.ConnectException: Connection timed out: connect >>> at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) >>> at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source) >>> at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source) >>> at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source) >>> at java.net.AbstractPlainSocketImpl.connect(Unknown Source) >>> at java.net.PlainSocketImpl.connect(Unknown Source) >>> at java.net.SocksSocketImpl.connect(Unknown Source) >>> at java.net.Socket.connect(Unknown Source) >>> at sun.net.NetworkClient.doConnect(Unknown Source) >>> at sun.net.www.http.HttpClient.openServer(Unknown Source) >>> at sun.net.www.http.HttpClient.openServer(Unknown Source) >>> at sun.net.www.http.HttpClient.<init>(Unknown Source) >>> at sun.net.www.http.HttpClient.New(Unknown Source) >>> at sun.net.www.http.HttpClient.New(Unknown Source) >>> at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown >>> Source) >>> at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown >>> Source) >>> at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source) >>> at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown >>> Source) >>> at >>> com.sun.jersey.client.urlconnection.URLConnectionClientHandler$1$1.getOutputStream(URLConnectionClientHandler.java:225) >>> at >>> com.sun.jersey.api.client.CommittingOutputStream.commitWrite(CommittingOutputStream.java:117) >>> at >>> com.sun.jersey.api.client.CommittingOutputStream.write(CommittingOutputStream.java:89) >>> at sun.nio.cs.StreamEncoder.writeBytes(Unknown Source) >>> at sun.nio.cs.StreamEncoder.implFlushBuffer(Unknown Source) >>> at sun.nio.cs.StreamEncoder.implFlush(Unknown Source) >>> at sun.nio.cs.StreamEncoder.flush(Unknown Source) >>> at java.io.OutputStreamWriter.flush(Unknown Source) >>> at java.io.BufferedWriter.flush(Unknown Source) >>> at >>> com.sun.jersey.core.util.ReaderWriter.writeToAsString(ReaderWriter.java:191) >>> at >>> com.sun.jersey.core.provider.AbstractMessageReaderWriterProvider.writeToAsString(AbstractMessageReaderWriterProvider.java:128) >>> at >>> com.sun.jersey.core.impl.provider.entity.StringProvider.writeTo(StringProvider.java:88) >>> at >>> com.sun.jersey.core.impl.provider.entity.StringProvider.writeTo(StringProvider.java:58) >>> at >>> com.sun.jersey.api.client.RequestWriter.writeRequestEntity(RequestWriter.java:300) >>> at >>> com.sun.jersey.client.urlconnection.URLConnectionClientHandler._invoke(URLConnectionClientHandler.java:204) >>> at >>> com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:147) >>> ... 16 more >>> >>> The config file in server side is as below. Is there any problem? >>> >>> org.neo4j.server.webserver.port=7474 >>> org.neo4j.server.webserver.address=0.0.0.0 >>> org.neo4j.server.webserver.https.port=7473 >>> org.neo4j.server.http.log.enabled=false >>> org.neo4j.server.webadmin.data.uri=/db/data/ >>> org.neo4j.server.webserver.maxthreads=200 >>> org.neo4j.rest.read_timeout=1000 >>> org.neo4j.rest.connect_timeout=200 >>> remote_shell_enabled = true >>> >>> >>> On Saturday, March 15, 2014 4:09:04 PM UTC-8, Michael Hunger wrote: >>> The port of the http interface is still 7474 >>> >>> Sent from mobile device >>> >>> Am 15.03.2014 um 20:56 schrieb Reihane Boghrati <[email protected]>: >>> >>>> Hi, >>>> >>>> I have my server and client running on two different machine. I use >>>> java-rest binding to connect to server. >>>> When I start Neo4j with Neo4j Community I can connect to server by this >>>> code: >>>> restgraphDb = new RestAPIFacade("http://serverip:7474/db/data"); >>>> >>>> But when I start Neo4j in command prompt with: sc start Neo4j-Server, I >>>> cannot connect to server by this code: >>>> restgraphDb = new RestAPIFacade("http://serverip:1337/db/data"); >>>> >>>> In config file I have this two lines: >>>> remote_shell_enabled = true >>>> enable_remote_shell=port=1337 >>>> >>>> I was wondering if the way I'm trying to use Neo4j shell is not correct. >>>> >>>> >>>> -- >>>> You received this message because you are subscribed to the Google Groups >>>> "Neo4j" group. >>>> To unsubscribe from this group and stop receiving emails from it, send an >>>> email to [email protected]. >>>> For more options, visit https://groups.google.com/d/optout. >>> >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "Neo4j" group. >>> To unsubscribe from this group and stop receiving emails from it, send an >>> email to [email protected]. >>> For more options, visit https://groups.google.com/d/optout. >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Neo4j" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> For more options, visit https://groups.google.com/d/optout. > > > -- > You received this message because you are subscribed to the Google Groups > "Neo4j" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
