nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

Howto verify linux open port

This is a discussion on Howto verify linux open port within the Getting started tutorials forums, part of the Linux Getting Started category; Simply use following command: Code: netstat -tulp OR Code: netstat -tulpn Sampleoutput: Code: Proto Recv-Q Send-Q Local Address Foreign Address ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Getting started tutorials

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 05-18-2007, 01:49 AM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Any distro with shell
Posts: 917
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default Howto verify linux open port

Simply use following command:
Code:
netstat -tulp
OR
Code:
netstat -tulpn
Sampleoutput:
Code:
Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name   
tcp        0      0 *:ssh                       *:*                         LISTEN      3224/sshd           
tcp        0      0 *:10000                     *:*                         LISTEN      30042/(squid)       
tcp        0      0 localhost:smtp              *:*                         LISTEN      3836/master         
udp        0      0 *:56315                     *:*                                     30042/(squid)       
udp        0      0 *:icpv2                     *:*                                     30042/(squid)
Look out for 4th column Local Address it shows open ports ssh (22) ,smtp(25) and others. For more info see:
Linux: Scanning network for open ports | nixCraft
How do I find out what ports are listening/open on my Linux/FreeBSD server? | Frequently Asked Questions
__________________
Vivek | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
Sponsored Links
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Open file in linux amsreeku Linux software 1 03-24-2008 06:41 PM
How to open a port fed111 Web servers 1 03-08-2008 11:26 PM
bsnl broadband connection using USB port in RHEl 4 linux meenal Computer Networking and Internet/broadband 1 10-08-2007 12:21 PM
Windows How do I tell if a TCP network port is open or not? tom Getting started tutorials 0 10-10-2006 03:56 AM
Linux : How do I verify which ports are listening? sweta Getting started tutorials 0 07-30-2006 10:02 PM


All times are GMT +5.5. The time now is 08:49 AM.


Powered by vBulletin® Version 3.7.3 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36