How to restrict the interfaces on which the server listens? #1008
-
|
When I run How to restrict the interfaces the server listens on? I want it to listen on loopback only. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
It seems like changing the |
Beta Was this translation helpful? Give feedback.
It seems like changing the
startscript inpackage.jsontoblitz start -H 127.0.0.1or runningyarn start -H 127.0.0.1ought to work. Node itself defaults to0.0.0.0: https://nodejs.org/api/net.html#net_server_listen_options_callback