serve-handler
serve-handler copied to clipboard
Appears to only listen on tcp6
Not listening on tcp4
$ serve -s build &
$ sudo netstat -tlpn | grep node
tcp6 0 0 :::5000 :::* LISTEN 2045/node
Check serve for details on how to change binding... handler doesn't concern itself with bindings
For TCP ports on hostname "localhost":
$ serve -l 1234
For TCP (traditional host/port) endpoints:
$ serve -l tcp://hostname:1234
For UNIX domain socket endpoints:
$ serve -l unix:/path/to/socket.sock
For Windows named pipe endpoints:
$ serve -l pipe:\\.\pipe\PipeName