❔ ASP.NET Core port remaining :5000 even after setting it to something else in launchSettings.json

Title pretty much explains it, it also runs on :38120 on my local computer but not on a release build
103 Replies
Anu6is
Anu6is2y ago
Is this the published app or in development? Oh, you said release...Yeah it doesn't read launch settings afaik there should be a UseUrls or Urls.Add method based on what exactly you are using ( WebHostBuilder or WebApplication)
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
The Fog from Human Resources
the debugging port isnt an issue that one changes, its the release build that doesn
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
The Fog from Human Resources
i broke it.
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
The Fog from Human Resources
it already does
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
The Fog from Human Resources
{
"profiles": {
"http": {
"commandName": "Project",
"launchBrowser": true,
"launchUrl": "weatherforecast",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"dotnetRunMessages": true,
"applicationUrl": "http://localhost:5035"
},
"https": {
"commandName": "Project",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"dotnetRunMessages": true,
"applicationUrl": "https://localhost:5000;http://localhost:5000",
"nativeDebugging": false
},
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
},
"$schema": "https://json.schemastore.org/launchsettings.json",
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:1091",
"sslPort": 44384
}
}
}
{
"profiles": {
"http": {
"commandName": "Project",
"launchBrowser": true,
"launchUrl": "weatherforecast",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"dotnetRunMessages": true,
"applicationUrl": "http://localhost:5035"
},
"https": {
"commandName": "Project",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"dotnetRunMessages": true,
"applicationUrl": "https://localhost:5000;http://localhost:5000",
"nativeDebugging": false
},
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
},
"$schema": "https://json.schemastore.org/launchsettings.json",
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:1091",
"sslPort": 44384
}
}
}
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
The Fog from Human Resources
do i set it to Ils
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
The Fog from Human Resources
but i need to change the port for release build
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
The Fog from Human Resources
its supposed to be 38120
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
The Fog from Human Resources
it doesnt matter what i put there it will not change
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
The Fog from Human Resources
its at 5035 now which is way off
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
The Fog from Human Resources
so now its on 38120 but how does that go into release build
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
The Fog from Human Resources
that works.
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
The Fog from Human Resources
i set it to 38120
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
The Fog from Human Resources
38120/38121
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
The Fog from Human Resources
{
"profiles": {
"http": {
"commandName": "Project",
"launchBrowser": true,
"launchUrl": "weatherforecast",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"dotnetRunMessages": true,
"applicationUrl": "http://localhost:5035"
},
"https": {
"commandName": "Project",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"dotnetRunMessages": true,
"applicationUrl": "https://localhost:38120;http://localhost:38121",
"nativeDebugging": false
},
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
},
"$schema": "https://json.schemastore.org/launchsettings.json",
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:1091",
"sslPort": 44384
}
}
}
{
"profiles": {
"http": {
"commandName": "Project",
"launchBrowser": true,
"launchUrl": "weatherforecast",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"dotnetRunMessages": true,
"applicationUrl": "http://localhost:5035"
},
"https": {
"commandName": "Project",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"dotnetRunMessages": true,
"applicationUrl": "https://localhost:38120;http://localhost:38121",
"nativeDebugging": false
},
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
},
"$schema": "https://json.schemastore.org/launchsettings.json",
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:1091",
"sslPort": 44384
}
}
}
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
The Fog from Human Resources
{

"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
"AllowedHosts": "*"
}
{

"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
"AllowedHosts": "*"
}
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
The Fog from Human Resources
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
}
}
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
}
}
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
The Fog from Human Resources
yes did Now listening on: https://localhost:38120
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
The Fog from Human Resources
i need the port to carry over onto a release build cause on my server it uses port 5000 which is used by one of my other apps / bound to a different subdomain and on my local pc it was 7188, either way i need it to be 38120
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
The Fog from Human Resources
some ppl told me to add the port as 0.0.0.0:38120 in Url or smth in the startup
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
The Fog from Human Resources
for testing i just put it to a server and run it on root using ./myApp to see if everything works so far
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
The Fog from Human Resources
an actual server elsewhere connected via SSH
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
The Fog from Human Resources
how do i structure that JSON file
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
The Fog from Human Resources
so i can just copy that file and make the changes needed
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
The Fog from Human Resources
ill take a look
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
The Fog from Human Resources
it has a certificate on the server subdomain at least
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
The Fog from Human Resources
i didnt try yet i left my PC
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
The Fog from Human Resources
ill check
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
The Fog from Human Resources
i never used either of them
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
The Fog from Human Resources
how do i know that
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
The Fog from Human Resources
yes i use SCcrying
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server