ASP Net Core Linux ERR_CONNECTION_REFUSED Rasperry PI

Sami C.
Oct 27, 2020

When testing a dotnet core application on raspbian (Linux) I found out that I kept getting ERR_CONNECTION_REFUSED when navigating to 192.168.0.x home address. I found out that this has to do with HttpsRedirection, which is default enabled in .Net core 3.0.

By commenting out the line in the startup.cs

app.UseHttpsRedirection();

Deploy to your rasperry pi and restart your application. You should now be able to navigate to your 192.168.0.x succesfully.

Hopefully this helps anyone struggling with the same issue!

--

--