serve icon indicating copy to clipboard operation
serve copied to clipboard

How to disable serving on public interface

Open mdanetzky opened this issue 5 years ago • 2 comments

I run a service on port 3000 which is then proxied by apache to https. I use:

serve -l tcp://127.0.0.1:3000

but it always opens the port on external IP. What can I do to serve on localhost only?

mdanetzky avatar Feb 09 '20 11:02 mdanetzky

The way you specified the command should only bind to localhost. If not then there is a bug. Thanks for reporting!

TooTallNate avatar Jun 04 '20 17:06 TooTallNate

How did you resolve this? When I run

serve -l tcp://127.0.0.1:3000

It DOES correctly set the local serve to the localhost i specified and port, however the "On Your Network" is still showing as being served. How can I disable the public interface?

🙏

jremi avatar Jul 03 '20 14:07 jremi