You can insert Kestrel section in asp.net core 2.1+ appsettings.json file.
"Kestrel": {
"EndPoints": {
"Http": {
"Url": "http://0.0.0.0:5002"
}
}
},
if you havedo not have kestrel section,you you can use "urls":
{
"urls":"http://*.6001;https://*.6002"
}
but if you have kestrel in appsettings.json, urls section will failure.