check ports on server

Hi All,

I've been using this to verify if ports is open on a server. For example I would like to check port 5887, "telnet ip.of.server 5887" using on dos. If there's response on it then I can say it's open, if not then it's close.

Is that assumption accurate?

Thanks for any comments you may add.

see here

hi

I thing so this command use full

netstat -an | grep LISTEN gives me a list of open ports this command work fine please check u r port or open/ closed

netstat -atnp -A inet | grep -i listen | uniq -c
shows what ports are open and what program is using them.

netstat is usually best to use but lsof also shows similar info
ie.
lsof -i | grep port#