March 29, 2011

To find ports opened on the server

Filed under: Linux Basics — SupportPRO Admin @ 10:34 pm


Login to the server:
telnet localhost “portnumber”

netstat command to find open ports
———————————-
netstat –listen

To display open ports and established TCP connections, enter
—————————————————————-
netstat -vatn

To display only open UDP ports try the following command:
————————————————————
netstat -vaun

To display the list of open ports, enter:
———————————————
lsof -i

AddThis Social Bookmark Button

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

You must be logged in to post a comment.

Powered by WordPress