Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 09-16-2004, 04:11 AM   #1
LQ Newbie
Registered: Jul 2004
Posts: 10

Rep: Reputation: 0
check which program use port 8080


Perhaps it's tivial question but how can I check what use port 8080. I'm trying to run tomcat (default port 8080) but it crash because already binded port
Old 09-16-2004, 04:18 AM   #2
LQ Newbie
Registered: Sep 2004
Location: Bathurst Australia
Distribution: Suse 9.2 but have used Suse 9.1 Red Hat 5.2 - 9, Linux Defender Live!, Knoppix, Morphix
Posts: 12

Rep: Reputation: 0
Use nmap

Use nmap xx.xx.xx.xx for your IP address - it should give a list like this:


Starting nmap 3.50 ( ) at 2004-09-16 19:15 EST
Interesting ports on
(The 1653 ports scanned but not shown below are in state: closed)
22/tcp open ssh
80/tcp open http
111/tcp open rpcbind
631/tcp open ipp
1241/tcp open nessus
3306/tcp open mysql

This should list all services bound to ports. For more information on nmap:

user@computer:~>nmap -h
Nmap 3.50 Usage: nmap [Scan Type(s)] [Options] <host or net list>
Some Common Scan Types ('*' options require root privileges)
* -sS TCP SYN stealth port scan (default if privileged (root))
-sT TCP connect() port scan (default for unprivileged users)
* -sU UDP port scan
-sP ping scan (Find any reachable machines)
* -sF,-sX,-sN Stealth FIN, Xmas, or Null scan (experts only)
-sV Version scan probes open ports determining service & app names/versions
-sR/-I RPC/Identd scan (use with other scan types)
Some Common Options (none are required, most can be combined):
* -O Use TCP/IP fingerprinting to guess remote operating system
-p <range> ports to scan. Example range: '1-1024,1080,6666,31337'
-F Only scans ports listed in nmap-services
-v Verbose. Its use is recommended. Use twice for greater effect.
-P0 Don't ping hosts (needed to scan and others)
* -Ddecoy_host1,decoy2[,...] Hide scan using many decoys
-6 scans via IPv6 rather than IPv4
-T <Paranoid|Sneaky|Polite|Normal|Aggressive|Insane> General timing policy
-n/-R Never do DNS resolution/Always resolve [default: sometimes resolve]
-oN/-oX/-oG <logfile> Output normal/XML/grepable scan logs to <logfile>
-iL <inputfile> Get targets from file; Use '-' for stdin
* -S <your_IP>/-e <devicename> Specify source address or network interface
--interactive Go into interactive mode (then press h for help)
Example: nmap -v -sS -O '192.88-90.*.*'

Hope this helps.
Old 09-16-2004, 04:20 AM   #3
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,820

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
Perhaps you run squid. Anyway you can use fuser to see what uses that port:
fuser -v -n tcp 8080


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Port 80-->8080?? flamesrock Linux - Software 4 08-01-2004 01:40 AM
problem in IM with the 8080 port dred Linux - Networking 0 06-06-2004 03:21 AM
What command changes port 8080 to 80? TSynergy Linux - Newbie 4 09-17-2003 05:18 AM
firewall.rc.config says :"open port 8080" but nmap says port is closed saavik Linux - Security 2 02-14-2002 12:16 PM
HTTP on port 8080 cauchy Linux - Networking 3 08-09-2001 07:29 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:40 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration