Results 1 to 8 of 8
-
03-08-2004, 02:19 AM #1Junior Guru
- Join Date
- Feb 2004
- Posts
- 217
How to find out what is using a specified port.
Hello, I have installed apf firewall on my linux server with rh9 and cpanel. Since the firewall install, I have not been able to run my shoutcast server. I keep getting an error that the port is being used by some other process. I have configured the fw, disabled it restarted it , nothing seems to work. How can I find out what process is using my ports?
Thanks, Kevin
-
03-08-2004, 02:28 AM #2Web Hosting Master
- Join Date
- Dec 2002
- Posts
- 1,304
Try (as root):
netstat -nap
and
lsof | grep LISTEN"The only difference between a poor person and a rich person is what they do in their spare time."
"If youth is wasted on the young, then retirement is wasted on the old"
-
03-08-2004, 06:19 AM #3Web Hosting Master
- Join Date
- Feb 2004
- Posts
- 772
Hi Kevin,
You can use nmap to view the port usage.
nmap <IP_address>
" Always have a bright support".
Regards,
Bright
-
03-08-2004, 09:42 AM #4WHT Addict
- Join Date
- Apr 2002
- Location
- Philly Pa
- Posts
- 130
for a easier output.
tcp -
netstat -lntpe
udp -
netstat -lnupe
-
03-08-2004, 10:07 AM #5Web Hosting Master
- Join Date
- Aug 2002
- Location
- UK
- Posts
- 852
lsof -i is probably the nicest output you'll get.
-
03-13-2004, 09:47 PM #6Junior Guru
- Join Date
- Feb 2004
- Posts
- 217
Thanks
Thanks all!!!
-
03-13-2004, 10:15 PM #7Web Hosting Master
- Join Date
- Jun 2003
- Location
- UK
- Posts
- 6,616
Try fuser port/tcp or fuser port/udp. That will give back the pid of the process
RusRuss Foster - Industry Curmudgeon
Freelance Sysadmin for Hire - email vaserv@gmail.com
-
03-15-2004, 11:22 PM #8Newbie
- Join Date
- Mar 2004
- Location
- US
- Posts
- 18
Hi,
You can use the nmap tool which you can download and then give the command
nmap localhost
Thanks,Arnold Mathews
Senior Linux Engineer
SupportSupply.com Outsourcing
http://www.SupportSupply.com