LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-17-2013, 07:42 AM   #1
devUnix
Member
 
Registered: Oct 2010
Posts: 606

Rep: Reputation: 59
Port 50000 not listening still the system thinks it is in use


Please consider the following output:

Code:
[root@ny ~]# nc -v -l 192.168.1.5 50000
nc: Address already in use


# netstat -an | grep 50000
<No output>

I have restarted nscd and /etc/init.d/dnsmasq services on this system.

The client is reporting that they have an application which tries to listen on this port: 50000 on the server mentioned but it is not working.


How do I resolve the above problem?
 
Old 10-17-2013, 08:58 AM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Port 50000 is high up in the ephemeral range so I wouldn't expect it to be used for a client connection unless the ephemeral range had been fiddled with or the host is extremely busy, would you please provide output from the following:
Code:
netstat -tunlp
netstat -an
 
Old 10-17-2013, 09:26 AM   #3
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
Depending on how fast you try to open a new socket an the same port it might still be seen as occupied by the kernel. Also I doubt that nc is that badly programmed but maybe a nother program used the port before. Not sure but i think the so_lingering socket options goes with this.
 
Old 10-18-2013, 04:05 AM   #4
devUnix
Member
 
Registered: Oct 2010
Posts: 606

Original Poster
Rep: Reputation: 59
Quote:
Originally Posted by kbp View Post
Port 50000 is high up in the ephemeral range so I wouldn't expect it to be used for a client connection unless the ephemeral range had been fiddled with or the host is extremely busy, would you please provide output from the following:
Code:
netstat -tunlp
netstat -an
The output of those commands does not contain the port number 50000. I can't comment on the "ephemeral range" part in your feedback.

This ticket has been assigned to me and I have got to resolve it.
 
Old 10-18-2013, 04:08 AM   #5
devUnix
Member
 
Registered: Oct 2010
Posts: 606

Original Poster
Rep: Reputation: 59
Can a system restart resolve the issue?
 
Old 10-18-2013, 05:00 AM   #6
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Not sure if the following will show more then netstat, but it cannot hurt to try:
Code:
lsof -i :50000
Quote:
Can a system restart resolve the issue?
Maybe, but if something is listening on port 50000 and is started at boot you'll end up with the same situation. Another thing that might be frustrating: If it does work after a reboot, what was "wrong" in the first place....
 
Old 10-21-2013, 03:02 AM   #7
devUnix
Member
 
Registered: Oct 2010
Posts: 606

Original Poster
Rep: Reputation: 59
Code:
lsof -i :50000

Does not show anything. I have got approval from the Dev Team for the reboot of the system. It would be bad on my part if that does not resolve the issue because they would put up questions... blah... blah!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Tomcat6 stops listening on port 80 when i change from port 8080 to port 80 trongthect Linux - Server 1 07-27-2012 05:41 PM
SFTP server port blocked on Uni network, need to change the listening port. sammyboy161 Linux - Newbie 2 10-21-2010 12:03 PM
System Not Listening for port 23, telnet installed and running john_lotz Linux - Networking 7 02-05-2009 10:12 AM
Port 50000,1026,1027 in firewall log bgeddy Linux - Networking 2 10-24-2007 04:55 PM
mrt vs. DB2, the battle for port 50000 tongar SUSE / openSUSE 0 05-09-2007 10:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration