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

I can not bind (using C or python sockets) to any port in the range: 59969-60000

Using lsof, netstat and fuser I do not see any processes using these ports.

Other ports such as 59900-59968 and 60001-60009 I can bind to them.

My OS: is CentOS release 5.5 (Final) 2.6.18-194.3.1.el5

There must be something missing? Anyone have any idea how to debug why this port range is not usable?

Cheers, Ivan

share|improve this question

closed as off topic by Matt, Jenny D, EEAA, Ward, mdpc Apr 17 '13 at 5:56

Questions on Server Fault are expected to relate to server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

Post the code. Also try "nc -l 60000" to rule out your code. – Mark Wagner Sep 9 '10 at 22:12
Also look at netstat -tap (as root), maybe some other program like inetd or xinetd is listening on ports in that range. – ott-- Jul 2 '12 at 19:04
Should have been placed on stackoverflow. too old to migrate. – Matt Apr 17 '13 at 3:49

I would check local firewall settings. Since iptables is not a separate process it will not usually show up in lsof, netstat, and fuser.
What is the output to "sudo iptables -L -n"?

share|improve this answer

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