Solved

Linux Port Checking

Posted on 2006-06-20
4
1,088 Views
Last Modified: 2010-05-18
Hi,

On Red Hat Linux, how do I know is a port is using by programs?

I simply want to check is port 3300 open or avaiable to use.

thanks,

Jack

0
Comment
Question by:huabin
4 Comments
 
LVL 10

Accepted Solution

by:
Luxana earned 200 total points
Comment Utility
Hi,

One such a tool is nmap

Example:

#nmap localhost

Starting nmap 3.81 ( http://www.insecure.org/nmap/ ) at 2006-06-21 15:19 EST
Interesting ports on localhost.localdomain (127.0.0.1):
(The 1653 ports scanned but not shown below are in state: closed)
PORT     STATE SERVICE
22/tcp   open  ssh
25/tcp   open  smtp
111/tcp  open  rpcbind
113/tcp  open  auth
443/tcp  open  https
614/tcp  open  unknown
631/tcp  open  ipp
1016/tcp open  unknown
3306/tcp open  mysql
5432/tcp open  postgres

Nmap finished: 1 IP address (1 host up) scanned in 0.474 seconds
0
 
LVL 16

Assisted Solution

by:Blaz
Blaz earned 100 total points
Comment Utility
netstat -ln | grep :3300
0
 
LVL 2

Assisted Solution

by:fpintos
fpintos earned 100 total points
Comment Utility
You can also use

lsof -i :3300

to list all processes that are using port 3300
0
 
LVL 3

Assisted Solution

by:Ustas
Ustas earned 100 total points
Comment Utility
Try

netstat -napt

for all tcp ports and processes using them (in your case: netstat -napt | grep -w 3300)

or

netstat -napu

for all udp ports and their respective processes.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
„dd“ vs „ddrescue“ 28 198
LDAP search filter 5 77
Linux neworking 4 63
monitor and log every file access on redhat/linux 4 97
I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now