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 --trustin 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