natemcmaster / dotnet-serve

Simple command-line HTTPS server for the .NET Core CLI
https://nuget.org/packages/dotnet-serve/
Apache License 2.0
782 stars 65 forks source link

-a switch to set the address is not working #132

Closed lejsekt closed 1 year ago

lejsekt commented 1 year ago

Describe the bug The shorthand switch for "--address" - "-a" is not working.

To Reproduce dotnet serve -a 0.0.0.0

Starting server, serving . Listening on: http://localhost:35011

Expected behavior I expect to be able reach the service on other interfaces than localhost, but only localhost works. Changing -a to --address fixes it.

Thank you.

natemcmaster commented 1 year ago

Closing as a duplicate of #131

lejsekt commented 1 year ago

I see, the -a switch indeed works with an IP address such as 10.x.y.z.