Showing results for 
Search instead for 
Did you mean: 

How can we connect to neo4j cluster hosted on AWS EC2 from local spring boot application?

Node Link

How can we connect to the Neo4j AWS cluster from the local spring boot application?

Any reference code is very much appreciated as my code

neo4j://localhost:8082 or bolt+routing://localhost:8082 does the thing but still, it gives the error

Closing connection pool towards localhost(, it has no active connections and is not in the routing table registry


Hi. You already figured the correct Spring property, that's the correct way.

I assume that you are running a custom AWS instance / cluster.
Make sure you configure the correct advertised address: Configure connectors - Operations Manual

It must be the ones reachable from outside the AWS instance.

This is not a Spring Boot or Spring Data issue but it would happen if you use the plain driver to connect to the cluster as well.

Nodes 2022
NODES 2022, Neo4j Online Education Summit

All the sessions of the conference are now available online