Environment for local machine development can be set in the Properties\launchSettings.json file of the project.
If you launch your project with IISExpress you could setup which ports to use for https:// and http:// like this
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:59481",
"sslPort": 44308
}
},
In this case, the application will be available on http://localhost:59481 and with SSL on https://localhost:44308. Please note that both endpoints could not have the same port (even in public web HTTP and HTTPS are on different ports, usually 80 and 443)
You could read more about the setup of the local environment here