Running a simple app with donet command - only localhost?

I followed this example code: Secure Your ASP.NET Core App with OAuth 2.0 | Okta Developer

This works great on dev machine and I run it using:
dotnet jkt_oAuth.dll --urls https://localhost:5001

but when I send it to the user and I try to do the same thing, it always seems to want to use localhost! Below is the approach I am using to force it to listen on a web address:
dotnet jkt_oAuth.dll --urls https://myUsersDomain.com:5001

When I run the app, you get the security warning on the web that the site is not trusted and if you click through those messages, it does end up getting to the correct site.

Is there an inherent issue with using the dotnet command (with a dll) or am I just missing something. Nowhere in the code or appsettings.json is localhost mentioned.

Thanks in advance,
Kevin

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.