Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use ngrok to expose neo4j instance running on localhost to be used by google colab?

I am trying to use my local neo4j server through google colab.

I am using ngrok to expose the port using command: ngrok http 7687. It gives something like this: ngrok

ngrok is working fine. But When trying to connect using colab, I am getting the following error:

colab_py2neo

Somehow, port 7687 is being used by default but I don't need any port for this particular case.

Any help is much appreciated. Thanks

like image 508
Paras Gupta Avatar asked Oct 29 '25 09:10

Paras Gupta


1 Answers

The bolt port on 7687 is not on http, but on TCP.

You can use ngrok tcp 7687 instead, you will need to open an account on ngrok in order to use the tcp forwarding feature.

like image 59
Christophe Willemsen Avatar answered Nov 01 '25 07:11

Christophe Willemsen