localhost:5001 refusing connection with VS Code for OSX

I am currently trying to run a test ASP.NET Application on OSX using VS Code that is explained here. After running dnx: kestrel and navigating to localhost:5001 I get a Connection Refused.

What can be causing the problem?

2 Answers

By default, it should listen on both ports

  • (http)
  • (httpS)

If you see Connection Refused it may mean that your machine does not trust HTTPS development certificate used.

You may need to run

dotnet dev-certs https --trust

in order to trust HTTPS certificate.

More details and platform specific information is available here:

Turns out it's localhost:5000. If anyone is following that tutorial, keep that in mind.

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like