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 ?


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/

  • 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.

  • 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
    
Made with ❤️ on ABP v9.1.0-preview. Updated on December 13, 2024, 06:09