1830240 Members
2028 Online
109999 Solutions
New Discussion

Port question

 
SOLVED
Go to solution
Nyck_1
Super Advisor

Port question

I'm trying to start a security server on port 9720. This comes back with a java error saying the port is in use. Netstat –a does not show anything on this port nor does lsof -i tcp:9720. Its looking like something is hanging onto this port somehow, is there a command I can run to flush port 9720?
4 REPLIES 4
Jonathan Fife
Honored Contributor
Solution

Re: Port question

Did you try netstat -an to view port numbers instead of service names? Seems unlikely that something would show up there if lsof didn't find it, though.

Is anything holding onto the udp port?
lsof -i udp:9720

Other than that, I'd suggest rebooting to flush the port status.
Decay is inherent in all compounded things. Strive on with diligence
Nyck_1
Super Advisor

Re: Port question

When I run a netstat -an on that port I get the following output:-

netstat -an |grep 9720
e00000024e197200 dgram 0 0 e00000024f4ddf00 0 0 0 /var/spool/sockets/pwgr/client25703

When I run the lsof I get nothing back at all:-

lsof -i udp:9720

I take it the only way round this is to reboot?
Steven Schweda
Honored Contributor

Re: Port question

How sure are you that the won't-start
program is really trying to use port 9720?
You seem to have good evidence that no one's
using 9720.
Nyck_1
Super Advisor

Re: Port question

rebooted the server and all seems fine now