Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IIS Express doesn't accept port less than 44300 #7736

Closed
mhamri opened this issue Feb 20, 2019 · 1 comment
Closed

IIS Express doesn't accept port less than 44300 #7736

mhamri opened this issue Feb 20, 2019 · 1 comment

Comments

@mhamri
Copy link

mhamri commented Feb 20, 2019

it's very strange, is there some kind of rule that the ssl port can't be less than 44300?

{
  "iisSettings": {
    "windowsAuthentication": false,
    "anonymousAuthentication": true,
    "iisExpress": {
      "applicationUrl": "http://localhost:54277/",
      "sslPort": 44300 <--- why i can't set this one to something less than this number?
    }
  },
  "profiles": {
    "IIS Express": {
      "commandName": "IISExpress",
      "launchBrowser": true,
      "environmentVariables": {
        "ASPNETCORE_ENVIRONMENT": "Development"
      }
    },
    "Axceligent.Ppms": {
      "commandName": "Project",
      "launchBrowser": true,
      "applicationUrl": "https://localhost:5001;http://localhost:5000",
      "environmentVariables": {
        "ASPNETCORE_ENVIRONMENT": "Development"
      }
    }
  }
}

i tested it out with 44300 and 44299 (just one port different) or even kestrel port 5001 doesnt' work. i also made sure the port is not in use.
image

if i choose any port less than 44300 even the asp.net core application isn't launch so there isn't any application to listen to the port. but if i do the same with command line i can run the project. as you can see the port that is set is 5001 which works fine if i run with command line, but the same port won't work with iis.

even the iis launch correctly
image

but the dotnet core die silently

@Tratcher
Copy link
Member

Yes, IIS Express pre-reserves 44300-44399 at install time and registeres it's certificate to those ports. HTTP can use any port but HTTPS is restricted to those ports.

@dotnet dotnet locked as resolved and limited conversation to collaborators Dec 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants