port number range for Passenger with Node.js

200 views
Skip to first unread message

Puneet T

unread,
Sep 13, 2013, 4:15:06 PM9/13/13
to phusion-...@googlegroups.com
Hi,

I am using the Passsenger inversion of control to launch an Express app, as suggested in a gist given in the thread here: https://groups.google.com/forum/#!topic/phusion-passenger/sZ4SjU8ypwc

I checked the port number used by the Node app when launched using Passenger is 57911.

$ netstat -atpee|grep node
Proto Recv-Q Send-Q Local Address           Foreign Address         State       User       Inode       PID/Program name
tcp        0      0 *:57911                 *:*                     LISTEN      xxxxx     917107      29318/node   


I want to make sure that I do not use the ports used by Passenger in any other application. So wanted to check if the range of port numbers that Passenger may use to launch Express app, is it documented somewhere?

Thanks,
Puneet


Hongli Lai

unread,
Sep 13, 2013, 4:26:16 PM9/13/13
to phusion-passenger
Phusion Passenger uses a random available port. It does so by binding
to port 0, and then the OS tells it which port was chosen.
> --
> You received this message because you are subscribed to the Google Groups
> "Phusion Passenger Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to phusion-passen...@googlegroups.com.
> To post to this group, send email to phusion-...@googlegroups.com.
> Visit this group at http://groups.google.com/group/phusion-passenger.
> For more options, visit https://groups.google.com/groups/opt_out.



--
Phusion | Ruby & Rails deployment, scaling and tuning solutions

Web: http://www.phusion.nl/
E-mail: in...@phusion.nl
Chamber of commerce no: 08173483 (The Netherlands)
Reply all
Reply to author
Forward
0 new messages