I am using java neo4j api for connecting to neo4j and perform operation on it using.
GraphDatabaseFactory gdf=new GraphDatabaseFactory();
GraphDatabaseService gds = gdf.newEmbeddedDatabase(new File("path for neo4j databases/graph.db"));
I am able to do all kind of operation but now i want to connect through IP address i.e. instead of filepath i want to connect neo4j on different network but i am unable to see any option regarding this.
Every search reult shows use of graphdatabase and driver for connecting to network but for that exection query format is changed i.e. i have to write in cypher language. But I have already written a code which is working fine in my system using GraphDatabaseService object and org.neo4j.graphdb i.e. neo4j java rest api.
Any how can I connect to ip address through GraphDatabaseService. If no then how can i connect such that in the end, i get GraphDatabaseService object as I have written complete code for my project and there is no time to change it.
I have already hosted neo4j server on another network and enabled all the listening port.