javascript - How do i restrict my node express application to localhost only? -


i have node express application want available localhost client. how can prevent other hosts accessing node express app?

when start listening server mentioned host name 'localhost'. take @ following code.

var app = require('express')(); app.listen(8000,'localhost'); 

Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -