I wanted a very simple local http server for testing, and heard about Node.js's http-server module:
A simple zero-configuration command-line http server http-server is a simple, zero-configuration command-line http server. It is powerful enough for production usage, but it's simple and hackable enough to be used for testing, local development, and learning.
I've installed it with NPM and the instructions from here look wonderfully simple:
http-server [path] [options]
After I remembered to wrap my folder directory in double quotes so it wouldn't trip up on spaces in directory names, it appeared to "just work":
...except it defaults to serving up my local content on my public IP address (the one I blanked out in the screenshot) in addition to
I only want localhost (
127...) but I can't see any relevant option in the options in the documentation (it mentions "address" but says the default address is
I must be missing something obvious here. How do I set it to only serve to localhost /
127.0.0.1:8080 and not include the others?