Can't connect to neo4j with cloudflare tunnel

I have the database installed on my workstation at home, but I want to be able to access it from other networks on my laptop, especially when working with the python connector. My ISP doesn't provide me with a public IP, which I can use so I am tunneling it to my domain on Cloudflare. I managed to be able to access http://domain:7474/browser , but connecting to the 7867 port isn't working. My guess is that Cloudflare doesn't really know how to manage the bolt protocol. For the 7867 port i added a hostname in Cloudflare configured for TCP.

Hello,

Bolt is just a wrapper inside http/s ... cloudflare doesn't need to "see inside" to pass it on across.

In order to talk to the internet you need a public IP, your ISP might not provide you with a static IP by default - but that's a different issue. To check your public IP: https://whatismyip.org

Cloudflare runs outside of your home network, something like this:

[cloudflare]---[your isp]---[wireless router]---[home wifi network]---[your devices]

You would need to bind your laptop's IP and port to the "public" side of your wireless router and then from there to the cloudflare configuration in order to make it accessible via https://domain:7474/

If your "other networks" are at home - you don't need any of this.

I would advice against such thing as you are exposing an http end-point without security, you would need to configure https and all relevant security to protect yourself.

it is accessible on http 7474, but the bolt protocol is the problem. I called my ISP and they don't offer a static IP for non-business clients...
From what I read, I understand that I can use a VPN like WireGuard to be able to connect to the server but I didn't try that yet.

Not sure what you mean by "accessible on http 7474"

Did you find what is your external IP ? then you can use http://external_IP:7474/ to test ...

1 Like

http://mydomain:7474 is accessible thorough my cloudflare tunnel. That is the browser interface of Neo4j, but it's basically useless because trying to connect to the database from there requiers bolt, which does not work through the tunnel. The external IP does not work because I am behind CGNAT

Sorry ... but bolt runs on :7687 ... :7474 is the front-end