Puzzled about UsePathBase on Blazor Server App, please make me understand it

Good day, sorry for my english I will try to explain myself as best as I can. I want to deploy in local network a small web server application I did using Blazor Net 6, I did deploy my application called APP inside a folder callde DEMO in the inetpub on and IIS I using for testing, I copied in the folder all the files and folders from the publish destination folder inside my local development machine. Then inside IIS I did create an applicationpool and I did create a new website and as binding I set up port 4000 as well as set up in the kestrel appsettings too. Associated the website with the applicationpool and installed websocket and all went pretty nicely. I can access my application via browser just using the name of the server and port assigned.
Now is the difficult point, I want to hide the port from the link and possibly I want to just type in the address bar the http://nameofserver/DEMO only.
I did try to read some guides around but I got pretty confused on what to change and what to look after, I did try this:

I added in program.cs

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>app.UsePathBase("/DEMO/");
</code>
<code>app.UsePathBase("/DEMO/"); </code>
app.UsePathBase("/DEMO/");

I added to the _Layout.cshtml

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code><base href="/DEMO/" />
</code>
<code><base href="/DEMO/" /> </code>
<base href="/DEMO/" />

I then tried to change the value inside launchaUrl too as

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>"launchUrl": "http://localhost:4000/DEMO"
</code>
<code>"launchUrl": "http://localhost:4000/DEMO" </code>
"launchUrl": "http://localhost:4000/DEMO"

I did some testing with a simple empty web server application because I want to understand how things must work there before move on the other project that use Controllers and has some folders to work with inside wwwroot too, so seem that the launch of http://localhost:4000/DEMO work, but if I remove the DEMO part I receive an error

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>Uncaught Error Error: Invocation canceled due to the underlying connection being closed.
at _connectionClosed (localhost꞉4000/DEMO/_framework/blazor.server.js:1:72863)
...........................
</code>
<code>Uncaught Error Error: Invocation canceled due to the underlying connection being closed. at _connectionClosed (localhost꞉4000/DEMO/_framework/blazor.server.js:1:72863) ........................... </code>
Uncaught Error Error: Invocation canceled due to the underlying connection being closed.
    at _connectionClosed (localhost꞉4000/DEMO/_framework/blazor.server.js:1:72863)
...........................

If in _layout.cshtml I remove <base href="/DEMO/" /> and change it back to <base href="~/" /> it work both on localhost꞉4000/DEMO and localhost꞉4000 and it’s good, but if I type localhost꞉4000 I want to be redirect to localhost꞉4000/DEMO address.
So please someone can help me to understand the right step to do for fix this little problems ? Best regards and thank you if you reach the end of this long post.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật