natemcmaster / dotnet-serve

Simple command-line HTTPS server for the .NET Core CLI

Home Page:https://nuget.org/packages/dotnet-serve/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

-a switch to set the address is not working

lejsekt opened this issue · comments

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.

Closing as a duplicate of #131

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