Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

If two applications require the same port, is it a reliable option to change the port number used by one of the apps to fix the conflict? Also, how do I know that the number above 4541, for example, is a port (is there a complete list)?

This is hypothetical but in the past I've had port conflicts and wondered how best these can be resolved.


share|improve this question

Making one of the applications use a different port will resolve the conflict, but there may be other reasons why it won't do which are beyond the scope of this question.

/etc/services contains a list of known ports and services.

share|improve this answer
and running a command like netstat -ntl will tell you what ports are actually in use on your system. – Zoredache Jun 30 '10 at 0:49

The IANA port numbers list contains the definitive list of ports. The end of the list contains a list of the relevant RFCs. The list states

The Dynamic and/or Private Ports are those from 49152 through 65535.

It is common for sites to implement private services on ports that are not listed, or listed to other services. This results in problems such as you have encountered.

share|improve this answer

Changing the port of one of the server applications will resolve the conflict, but you then need to ensure that any client application that needs to connect to the server knows that it should use the new port number instead of the original, default number.

share|improve this answer
That falls under the "other reasons" in my answer. – Ignacio Vazquez-Abrams Jun 30 '10 at 1:48

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.