title: Could not start GlassFish 4.0 (Windows) - port 1527 - Address already in use
body: <p>I'm a newbie in Java EE 7.</p>
  
  <p>I have Netbeans 7.4 with GlassFish 4.0 and Java EE 7. In a 64-bit Windows 8.1 Pro machine. I want to start the GlassFish 4.0 Server, so I clicked on the services tab in Netbeans and then in the Servers option I right-clicked GlassFish Server 4.0 and then clicked Start.</p>
  
  <p>When I did that I got the following message: "Could not start GlassFish Server 4.0: HTTP or HTTPS listener port is occupied while server is not running". I have also the IIS server, but I stopped it. After stopping IIS I tried to start again the GlassFish but it showed me the same message.</p>
  
  <p>Also there is a window in Netbeans called <strong>Output - Java DB Database Process</strong> and it showed me the following:</p>
  
  <pre><code>Tue May 06 22:03:11 GMT-05:00 2014 : Security manager installed using the Basic server security policy.
  Tue May 06 22:03:11 GMT-05:00 2014 Thread[main,5,main] java.io.FileNotFoundException: D:\Users\Juan Jose\.netbeans-derby\derby.log (Access is denied)
  Tue May 06 22:03:12 GMT-05:00 2014 : Could not listen on port 1527 on host localhost:
   java.net.BindException: Address already in use: JVM_Bind
  Tue May 06 22:03:12 GMT-05:00 2014 : Could not listen on port 1527 on host localhost:
   java.net.BindException: Address already in use: JVM_Bind
  </code></pre>
  
  <p>I ran a netstat -a in Windows to see what was happening with the 1527 port and that port is in LISTENING mode.</p>
  
  <p>So how can I know what application or process is ocuppying the 1527 port?</p>
  
  <p>Thanks for your help !!</p>