vercel / serve-handler

The foundation of `serve`

Home Page:https://npmjs.com/serve-handler

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Appears to only listen on tcp6

prographo opened this issue · comments

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