Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Neo4j websocket connection timeout on Google Compute Engine

I'm currently running Neo4j on Google Cloud with in a Compute Engine VM running Ubuntu. The 7474 port works as expected, however I'm receiving the following message when trying to connect to server:

WebSocket connection to 'ws://<ip>:7687/' failed: Error in connection establishment: net::ERR_CONNECTION_TIMED_OUT

I checked the conf/neo4j.conf for dbms.connector.bolt.address=0.0.0.0:7687 and it's not commented out.

I checked the firewall, and there is a rule for port 7687, so what else could cause this?

Thanks in advance for the help

Update:

I was able to use the cypher-shell from the VM's command line, which connects to bolt://localhost:7687

like image 212
xiu shi Avatar asked Mar 12 '26 15:03

xiu shi


1 Answers

It turns out the issue was with neither GCP nor neo4j. The company where I work for has a firewall blocking the port, and that's why I wasn't able to connect to the database using the browser. Dataflow in Compute Engine had no problem connecting to neo4j.

like image 74
xiu shi Avatar answered Mar 15 '26 13:03

xiu shi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!