nixCraft Linux Forum

nixCraft

Linux / UNIX 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 ...

Register free or login to your existing account and remove all advertisements.


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

Linux answers from nixCraft.


Getting started tutorials So much to read, so little time! If that is your problem, we have solution. Read our FAQ and tutorials to help you cut through the clutter of information overload. Only members of "contributors" group can post new tutorials. Other members can just reply to thread.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-18-2007, 01:49 AM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,674
Thanks: 11
Thanked 240 Times in 180 Posts
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 Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
Reply


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 Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Windows How do I tell if a TCP network port is open or not? tom Getting started tutorials 1 11-04-2009 02:46 PM
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
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 07:49 PM.


Powered by vBulletin® Version 3.8.4 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2009 nixCraft. All rights reserved

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 37 38