cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

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?