Cannot connect to Neo4j server from web server

I have a problem when connect to Neo4j server from a web server

Connection with the server breaks due to IOException: Failed to connect to server 'bolt://10.4.4.185:7687/' via IP addresses'[10.4.4.185]' at port '7687'. Please ensure that your database is listening on the correct host and port and that you have compatible encryption settings both on Neo4j server and driver. Note that the default encryption setting has changed in Neo4j 4.0

However, when I test with a console, it can connect and run the query properly. What is the problem here?

Neo4j 4.2.5
Neo4j.Driver 4.2.37.0

This is my code for initial driver

GraphDatabase.Driver("bolt://10.4.4.185:7687", AuthTokens.Basic("username", "password")
                , configNeo4j => configNeo4j.WithEncryptionLevel(EncryptionLevel.None))

Thanks for your help,
Harvey Nguyen

Hi @harvey_nguyen , would you like to know which .net version using for (.net framework or netcore)
I found out the similar issue that hope this helpful guide to trust certificate
Good luck.

I'm using .net framework and Neo4j.Driver 4.2.37.0. Your link doesn't works for me :frowning:
Thanks very much

Hi @harvey_nguyen ,
Even I'm facing same issue. Did you find any solution for this?

Thanks in advance.