[windows] How do I find which application is using up my port?

I am unable to start GlassFish, because it keeps showing this error message:

SEVERE: Shutting down v3 due to startup exception : No free port within range: 8080=com.sun.enterprise.v3.services.impl.monitor.MonitorableSelectorHandler@ed7d1

How can I find what applications are using what ports on Windows Vista? I have tried using nmap zenmap using the following target:

http://127.0.0.1:8080

But all I get is this:

Starting Nmap 5.51 ( http://nmap.org ) at 2011-08-05 12:05 Central Daylight Time

NSE: Loaded 57 scripts for scanning.

Read data files from: C:\Program Files\Nmap
Nmap done: 0 IP addresses (0 hosts up) scanned in 4.55 seconds
           Raw packets sent: 0 (0B) | Rcvd: 0 (0B)
WARNING: No targets were specified, so 0 hosts scanned.

This question is related to windows port windows-vista netstat

The answer is


On the command prompt, do:

netstat -nb

To see which ports are available on your machine run:

C:>  netstat -an |find /i "listening"

It may be possible that there is no other application running. It is possible that the socket wasn't cleanly shutdown from a previous session in which case you may have to wait for a while before the TIME_WAIT expires on that socket. Unfortunately, you won't be able to use the port till that socket expires. If you can start your server after waiting for a while (a few minutes) then the problem is not due to some other application running on port 8080.


Examples related to windows

"Permission Denied" trying to run Python on Windows 10 A fatal error occurred while creating a TLS client credential. The internal error state is 10013 How to install OpenJDK 11 on Windows? I can't install pyaudio on Windows? How to solve "error: Microsoft Visual C++ 14.0 is required."? git clone: Authentication failed for <URL> How to avoid the "Windows Defender SmartScreen prevented an unrecognized app from starting warning" XCOPY: Overwrite all without prompt in BATCH Laravel 5 show ErrorException file_put_contents failed to open stream: No such file or directory how to open Jupyter notebook in chrome on windows Tensorflow import error: No module named 'tensorflow'

Examples related to port

Docker - Bind for 0.0.0.0:4000 failed: port is already allocated How do I kill the process currently using a port on localhost in Windows? Node.js Port 3000 already in use but it actually isn't? Can't connect to Postgresql on port 5432 Spring Boot - How to get the running port Make docker use IPv4 for port binding How to change the default port of mysql from 3306 to 3360 Open firewall port on CentOS 7 Unable to launch the IIS Express Web server, Failed to register URL, Access is denied XAMPP Port 80 in use by "Unable to open process" with PID 4

Examples related to windows-vista

Batchfile to create backup and rename with timestamp How do I find which application is using up my port? How do you run a command as an administrator from the Windows command line? Automatic confirmation of deletion in powershell eclipse stuck when building workspace How do you clear your Visual Studio cache on Windows Vista? Maximum filename length in NTFS (Windows XP and Windows Vista)? Launching an application (.EXE) from C#? How to do a HTTP HEAD request from the windows command line? Request UAC elevation from within a Python script?

Examples related to netstat

How to check if a network port is open on linux? How do I find which application is using up my port? How to get default gateway in Mac OSX Who is listening on a given TCP port on Mac OS X? Port 80 is being used by SYSTEM (PID 4), what is that?