serve
serve copied to clipboard
How to disable serving on public interface
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?
The way you specified the command should only bind to localhost. If not then there is a bug. Thanks for reporting!
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?
🙏