I've implemented the example in this article https://docs.microsoft.com/en-us/aspnet/core/security/enforcing-ssl?view=aspnetcore-2.1&tabs=visual-studio
But when I try to go to the webside I get timed out. I think the port is wrong, but how can I know what port to set?
If I explicitly write https// in the address to the site I can get to the site, but not if I just write the adress directly like "adress.com"