1832529 Members
8059 Online
110043 Solutions
New Discussion

Re: 123 udp

 
Lee_110
Occasional Contributor

123 udp

Hi,

How could I know if port 123 is configured, in use by something and working?

What in netstat -a | grep 123 would say 123 is good

TIA.
5 REPLIES 5
Stephen Keane
Honored Contributor

Re: 123 udp

Port 123 is usually assigned to NTP. Any port below 1024 is usually reserved for soemthing. If you don't have lsof, then netstat would usually indicate if a port was in use, but a port may be reserved but not in use which netstat won't tell you.
Lee_110
Occasional Contributor

Re: 123 udp

Stephen,

lsof won't work on my system ....

Any alternative?

Thanks
Sergejs Svitnevs
Honored Contributor

Re: 123 udp

"-p" option in netstat shows the PID and name of the program to which each socket belongs.

Try to find some info using:
netstat -nlp |grep 123

Regards,
Sergejs
Lee_110
Occasional Contributor

Re: 123 udp

netstat -nIp?
Lee_110
Occasional Contributor

Re: 123 udp

Also, when ping is successful to a server, should it still be added to /etc/hosts (and DNS)? I am able to successfully ping to its ip as well as name.