What's the best practise to do it by node itself, not by firewall?
Asked
Active
Viewed 299 times
1 Answers
5
When you call server.listen, you can pass a host
to limit the the range of accepted IP addreses:
server.listen(1234, '127.0.0.1');

Laurent Perrin
- 14,671
- 5
- 50
- 49