Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 professional 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.

1  
Post the code. Also try "nc -l 60000" to rule out your code. –  Mark Wagner Sep 9 '10 at 22:12
1  
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

1 Answer 1

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.