cancel
Showing results for 
Search instead for 
Did you mean: 

Connection failed with .Net app

OmarHamdy
Node Clone

I am implementing the example in Neo4j .NET course and I got this exception here 

public static async Task InitDriverAsync(string uri, string username, string password)
{
_driver = GraphDatabase.Driver(uri, AuthTokens.Basic(username, password));
await _driver.VerifyConnectivityAsync();
}

Neo4j.Driver.ServiceUnavailableException: 'Connection with the server breaks due to IOException: Failed to connect to server 'bolt://3.235.19.104:7687/' via IP addresses'[3.235.19.104]' 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.'

appsettings.json 

"AllowedHosts": "*",
"Jwt": {
"secret": "SuperSecureSecret"
},
"Neo4j": {
"uri": "bolt://3.235.19.104:7687",
"username": "neo4j",
"password": "solution-bomb-crosses"
},
"Password": {
"rounds": "10"
}

2 REPLIES 2

But your sandbox database is still running and you can access it e.g. via Neo4j browser?

Yes

Nodes 2022
Nodes
NODES 2022, Neo4j Online Education Summit

On November 16 and 17 for 24 hours across all timezones, you’ll learn about best practices for beginners and experts alike.