I check if ports are in use, but ports were available.
Looks like some temp file issue from visual studio. Every time we change sslPort port we have to clean and rebuild solution and it start working after after.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Below is my launchsettings.json file.
When I define sslPort 44308. I am able to browse https://localhost:44308.
But if I define any other port let's say "44309". It is not working and browser throwing error stating "This site can't be reached. Local host refuse to connect".
Any reason, it is only working with 44308 and not with other port even for 443.
{
"iisSettings": {
"iisExpress": {
"applicationUrl": "http://localhost:53425",
"sslPort": 44308
}
},
"profiles": {
"IIS Express": {
"commandName": "IISExpress"
}
}
}
I check if ports are in use, but ports were available.
Looks like some temp file issue from visual studio. Every time we change sslPort port we have to clean and rebuild solution and it start working after after.
From documentation:
If you want to test SSL access to your site, you can do this with IIS Express by using an SSL port between 44300 and 44399 and using the IIS Express self-signed certificate. Actually range is from 44300 to 44398.
Trying to use SSL with a port outside this range results in a URL binding failure when your website is launched under IIS Express.