Open Closed

Custom Port Number while running Web.exe file from Bin Folder #3101


User avatar
0
zalak created
  • ABP Framework version: v5.2.1
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

In Bin Folder of Web Project, On Running the [ProjectName]Web.exe file, the application starts. However, the default port it listen would be localhost:5000. How can I customize the port ? I tried making changes in launchSettings.json file but found ineffective. What could be the way for the same ?

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

3 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    https://andrewlock.net/5-ways-to-set-the-urls-for-an-aspnetcore-app/

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    zalak created

    Thank You for the reference. However, I refered this link earlier but the mentioned problem perfectly works in Applications using Asp.net Core MVC but doesn't work in ABP Application.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer
    > aspnet-core\src\MyCompanyName.MyProjectName.Web\bin\Debug\net6.0\publish> $env:ASPNETCORE_URLS="http://localhost:8001"
    > aspnet-core\src\MyCompanyName.MyProjectName.Web\bin\Debug\net6.0\publish> dotnet .\MyCompanyName.MyProjectName.Web.dll
    [09:41:43 INF] Starting web host.
    [09:41:44 INF] Initialized all ABP modules.
    [09:41:44 INF] Now listening on: http://localhost:8001
    [09:41:44 INF] Application started. Press Ctrl+C to shut down.
    [09:41:44 INF] Hosting environment: Production
    
    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 28, 2026, 11:44
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.