On Jan 8, 2014, at 01:34, Ket <[email protected]> wrote:

> I use node.js to communicate with my web applications real time.
> When I assign port 80, it is conflicted with Apache port 80 and I cannot 
> access to the app from my mobile devices.
> But when I assign port 37, I cannot access to it from my work computer.
> 
> So which port is safe for commercial use generally and not conflict with 
> security setting.
> 
> Thank you,
> 
> PS. I'm not an IT guy.

A port on a given IP address can only be used by one application at a time. If 
Apache is already serving web pages on port 80 on an IP address, then you 
cannot use port 80 on that same IP address for your node app.

Port numbers are assigned by the Interned Assigned Number Authority (IANA). If 
you are setting up a public-facing server, you should use the correct port 
number for the type of service you’re providing. If you’re providing a web 
server, then use a port number designated for web server use.

Port 37 is not designated for web server use. It’s designated for time server 
use. Granted, that time server protocol seems to have been superseded by ntp 
and is thus probably not in common use, but it’s still an unusual port number 
to use if you’re trying to serve web pages.

Here is a list of port numbers, both assigned and unassigned but in common use:

http://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers

Besides 80, popular port numbers to use for web servers include 8080 and 8008.


Besides using a different port number, another option might be to get a second 
IP address, and use one for Apache and the other for nginx.


To clarify: you said "I use node.js to communicate with my web applications 
real time.” So, is node providing part of your web application? Serving any web 
pages? Or is it just communicating with your existing web infrastructure served 
by Apache? If it’s only communicating with an existing web app, then it 
shouldn’t need to grab any port number at all.

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to