Skip to content

How to restrict the interfaces on which the server listens? #1008

Answered by benatkin
netheril96 asked this question in Q&A
Discussion options

You must be logged in to vote

It seems like changing the start script in package.json to blitz start -H 127.0.0.1 or running yarn start -H 127.0.0.1 ought to work. Node itself defaults to 0.0.0.0: https://nodejs.org/api/net.html#net_server_listen_options_callback

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by netheril96
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants