Results 1 to 8 of 8
  1. #1

    * 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

  2. #2
    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"

  3. #3
    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

  4. #4
    Join Date
    Apr 2002
    Location
    Philly Pa
    Posts
    130
    for a easier output.

    tcp -
    netstat -lntpe

    udp -
    netstat -lnupe

  5. #5
    Join Date
    Aug 2002
    Location
    UK
    Posts
    852
    lsof -i is probably the nicest output you'll get.

  6. #6

    Thanks

    Thanks all!!!

  7. #7
    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

    Rus
    Russ Foster - Industry Curmudgeon
    Freelance Sysadmin for Hire - email vaserv@gmail.com

  8. #8
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •