Results 1 to 16 of 16

Thread: How to determine what software is using port 80 (or any other port)

  1. #1
    Alpha Software Employee Lenny Forziati's Avatar
    Real Name
    Lenny Forziati
    Join Date
    Nov 2001
    Location
    Alpha Software
    Posts
    4,377

    Default How to determine what software is using port 80 (or any other port)

    For troubleshooting why the Web App Server says the port is in use...

    Windows XP and 2003 have the tools built-in to determine what process is using a specific TCP/IP port. If you are using some other version of windows, you will not be able to continue as below. But there are still a number of third-party tools available which can be downloaded instead. One such tool that has been used successfully by several people is fport.


    From a command prompt, run netstat -o. This will output a list of ports, along with the PID (process ID) that has that port open. The output looks something like:

    Code:
    C:\Documents and Settings\Administrator>netstat -o
    
    Active Connections
    
      Proto  Local Address          Foreign Address        State           PID
      TCP    WEBAPPSERVER2:80       199.90.113.2:57434     TIME_WAIT       2636
      TCP    WEBAPPSERVER2:80       199.90.113.2:57589     TIME_WAIT       2636
      TCP    WEBAPPSERVER2:80       199.90.113.2:57600     TIME_WAIT       2636
      TCP    WEBAPPSERVER2:80       199.90.113.2:57608     TIME_WAIT       2636
      TCP    WEBAPPSERVER2:3389     12.110.143.84:6473     ESTABLISHED     964
      TCP    WEBAPPSERVER2:2325     192.168.0.13:netbios-ssn  TIME_WAIT       0
    
    C:\Documents and Settings\Administrator>
    The sample output above indicates that the local port 80 is being used by process id 2636.

    To determine what executable is running as a process ID, open Windows Task Manager and switch to the Processes tab. Now click on View->Select Columns... On the screen that opens, make sure "PID (Process Identifier)" is checked and then click OK. Now click on the PID heading to sort the entries by PID. The screen below shows that PID 2636 is alpha5.exe, indicating that it is the Web Application Server using port 80 in this case.

    taskman.png

  2. #2
    VAR John Oesterle's Avatar
    Real Name
    John Oesterle
    Join Date
    Apr 2000
    Location
    Midwest
    Posts
    223

    Default

    Lenny -

    It would appear netstat -a displays the same info in WIN 2000.

    - John O

  3. #3
    Alpha Software Employee Lenny Forziati's Avatar
    Real Name
    Lenny Forziati
    Join Date
    Nov 2001
    Location
    Alpha Software
    Posts
    4,377

    Default

    netstat -a on windows 2000 does not show the PID using the port, this was added as -o in XP. You can use netstat on 2000 to confirm that the port is in fact open, but you cannot find out by which process.

    -Lenny

    Quote Originally Posted by John Oesterle
    Lenny -

    It would appear netstat -a displays the same info in WIN 2000.

    - John O

  4. #4
    Member leetv's Avatar
    Real Name
    Lee Taylor-Vaughan
    Join Date
    Aug 2010
    Location
    Hillsborough, NJ/Avondale, AZ/Sheffield, UK
    Posts
    342

    Default Re: How to determine what software is using port 80 (or any other port)

    I tried the above; nothing appears to be using port 80 on the list, however, I get the error that the port is in use with WAS.
    I've deleted the sites that were using in IIS

    why am I still getting this error?

    below is the output of netstat -o

    C:\Program Files (x86)\Support Tools>netstat -o

    Active Connections

    Proto Local Address Foreign Address State PID
    TCP VPS-2035:smtp VPS-2035:3651 TIME_WAIT 0
    TCP VPS-2035:smtp VPS-2035:3658 TIME_WAIT 0
    TCP VPS-2035:smtp VPS-2035:3659 TIME_WAIT 0
    TCP VPS-2035:smtp VPS-2035:3660 TIME_WAIT 0
    TCP VPS-2035:smtp VPS-2035:3661 TIME_WAIT 0
    TCP VPS-2035:smtp VPS-2035:3662 TIME_WAIT 0
    TCP VPS-2035:smtp VPS-2035:3665 TIME_WAIT 0
    TCP VPS-2035:smtp VPS-2035:3666 TIME_WAIT 0
    TCP VPS-2035:smtp VPS-2035:3667 TIME_WAIT 0
    TCP VPS-2035:smtp VPS-2035:3668 TIME_WAIT 0
    TCP VPS-2035:smtp VPS-2035:3670 TIME_WAIT 0
    TCP VPS-2035:smtp VPS-2035:3671 TIME_WAIT 0
    TCP VPS-2035:smtp VPS-2035:3672 TIME_WAIT 0
    TCP VPS-2035:smtp VPS-2035:3678 TIME_WAIT 0
    TCP VPS-2035:smtp VPS-2035:3679 TIME_WAIT 0
    TCP VPS-2035:smtp VPS-2035:3680 TIME_WAIT 0
    TCP VPS-2035:smtp VPS-2035:3681 TIME_WAIT 0
    TCP VPS-2035:smtp VPS-2035:3682 TIME_WAIT 0
    TCP VPS-2035:smtp VPS-2035:3683 TIME_WAIT 0
    TCP VPS-2035:smtp VPS-2035:3685 TIME_WAIT 0
    TCP VPS-2035:smtp VPS-2035:3686 TIME_WAIT 0
    TCP VPS-2035:smtp VPS-2035:3692 TIME_WAIT 0
    TCP VPS-2035:smtp VPS-2035:3695 TIME_WAIT 0
    TCP VPS-2035:smtp VPS-2035:3696 TIME_WAIT 0
    TCP VPS-2035:smtp VPS-2035:3698 TIME_WAIT 0
    TCP VPS-2035:smtp VPS-2035:3700 TIME_WAIT 0
    TCP VPS-2035:smtp VPS-2035:3701 TIME_WAIT 0
    TCP VPS-2035:smtp VPS-2035:3704 TIME_WAIT 0
    TCP VPS-2035:smtp VPS-2035:3705 TIME_WAIT 0
    TCP VPS-2035:smtp VPS-2035:3706 TIME_WAIT 0
    TCP VPS-2035:smtp VPS-2035:3707 TIME_WAIT 0
    TCP VPS-2035:smtp VPS-2035:3708 TIME_WAIT 0
    TCP VPS-2035:smtp VPS-2035:3709 TIME_WAIT 0
    TCP VPS-2035:3649 VPS-2035:smtp TIME_WAIT 0
    TCP VPS-2035:3650 VPS-2035:smtp TIME_WAIT 0
    TCP VPS-2035:3653 VPS-2035:smtp TIME_WAIT 0
    TCP VPS-2035:3654 VPS-2035:smtp TIME_WAIT 0
    TCP VPS-2035:3656 VPS-2035:smtp TIME_WAIT 0
    TCP VPS-2035:3660 VPS-2035:smtp TIME_WAIT 0
    TCP VPS-2035:3670 VPS-2035:smtp TIME_WAIT 0
    TCP VPS-2035:3673 VPS-2035:smtp TIME_WAIT 0
    TCP VPS-2035:3674 VPS-2035:smtp TIME_WAIT 0
    TCP VPS-2035:3675 VPS-2035:smtp TIME_WAIT 0
    TCP VPS-2035:3677 VPS-2035:smtp TIME_WAIT 0
    TCP VPS-2035:3678 VPS-2035:smtp TIME_WAIT 0
    TCP VPS-2035:3679 VPS-2035:smtp TIME_WAIT 0
    TCP VPS-2035:3683 VPS-2035:smtp TIME_WAIT 0
    TCP VPS-2035:3684 VPS-2035:smtp TIME_WAIT 0
    TCP VPS-2035:3686 VPS-2035:smtp TIME_WAIT 0
    TCP VPS-2035:3687 VPS-2035:smtp TIME_WAIT 0
    TCP VPS-2035:3688 VPS-2035:smtp TIME_WAIT 0
    TCP VPS-2035:3692 VPS-2035:smtp TIME_WAIT 0
    TCP VPS-2035:3693 VPS-2035:smtp TIME_WAIT 0
    TCP VPS-2035:3694 VPS-2035:smtp TIME_WAIT 0
    TCP VPS-2035:3697 VPS-2035:smtp TIME_WAIT 0
    TCP VPS-2035:3703 VPS-2035:smtp TIME_WAIT 0
    TCP VPS-2035:3706 VPS-2035:smtp TIME_WAIT 0
    TCP VPS-2035:3710 VPS-2035:smtp TIME_WAIT 0
    TCP VPS-2035:3711 VPS-2035:smtp TIME_WAIT 0
    TCP VPS-2035:3712 VPS-2035:smtp TIME_WAIT 0
    TCP VPS-2035:ms-wbt-server c-98-221-116-58.hsd1.nj.comcast.net:49424 ESTABLISHED 79096
    TCP VPS-2035:ms-wbt-server cs-lb01-priv.nat.firewall1.softcom.biz:24191 ESTABLISHED 79096
    TCP VPS-2035:3724 imta.westchester.pa.mail.comcast.net:smtp SYN_SENT 56172
    TCP VPS-2035:3725 imta.emeryville.ca.mail.comcast.net:smtp SYN_SENT 56172
    TCP VPS-2035:3726 imta.emeryville.ca.mail.comcast.net:smtp SYN_SENT 56172
    TCP VPS-2035:3727 imta.emeryville.ca.mail.comcast.net:smtp SYN_SENT 56172
    TCP VPS-2035:3728 imta.westchester.pa.mail.comcast.net:smtp SYN_SENT 56172
    TCP VPS-2035:3729 imta.westchester.pa.mail.comcast.net:smtp SYN_SENT 56172
    TCP VPS-2035:3730 imta2.westchester.pa.mail.comcast.net:smtp SYN_SENT 56172
    TCP VPS-2035:3731 imta2.emeryville.ca.mail.comcast.net:smtp SYN_SENT 56172
    TCP VPS-2035:3732 imta.westchester.pa.mail.comcast.net:smtp SYN_SENT 56172
    TCP VPS-2035:3733 imta2.emeryville.ca.mail.comcast.net:smtp SYN_SENT 56172
    TCP VPS-2035:3734 imta.westchester.pa.mail.comcast.net:smtp SYN_SENT 56172

    C:\Program Files (x86)\Support Tools>

  5. #5
    Member
    Real Name
    Guillermo Dewey
    Join Date
    Jun 2011
    Posts
    13

    Default Re: How to determine what software is using port 80 (or any other port)

    same here.. nothing running port 80 .. but I get the message that port is being used..

    if I http://localhost I get the A5 icon on my browser but is not mapped to the right phisical path.

  6. #6
    Member
    Real Name
    Michael s
    Join Date
    Aug 2011
    Posts
    1

    Default Re: How to determine what software is using port 80 (or any other port)

    I resolved this issue on Server 2003 SP2. The server was working fine for years and recently, I think since the last critical updates, wouldn't browse any sites. Same symptoms as other posters, could ping, DNS resolution working, nothing shown using the port using netstat, no proxy or odd LAN settings in IE.

    Found this error in DNS,

    The DNS server could not open socket for address 0.0.0.0.
    Verify that this is a valid IP address for the server computer. If it is NOT valid use the Interfaces dialog under Server Properties in the DNS Manager to remove it from the list of IP interfaces.

    Apparently the setting, listen on all IP addresses, which has been the setting for literally 4 years, needed to be changed to the sole IP address of this server (only the following IP...). Problem solved.

  7. #7
    Member
    Real Name
    bigal
    Join Date
    Mar 2007
    Posts
    30

    Default Re: How to determine what software is using port 80 (or any other port)

    how to determin what is using port 80 in win7 64

  8. #8
    Member
    Real Name
    John Berry
    Join Date
    Nov 2007
    Location
    Maryland, USA
    Posts
    529

    Default Re: How to determine what software is using port 80 (or any other port)

    I'm also unable to use port 80 all of a sudden. Win 7/64. Following instructions above and from other areas on the 'net the PID = 0. Going to Services in the Task Manager does not show a PID of 0.

    Any ideas?

    -John

  9. #9
    Member
    Real Name
    John Berry
    Join Date
    Nov 2007
    Location
    Maryland, USA
    Posts
    529

    Default Re: How to determine what software is using port 80 (or any other port)

    Nervermind. Found the culprit - SQL Server

  10. #10
    Member
    Real Name
    John McIlwrath
    Join Date
    Nov 2011
    Location
    Cambridge ON
    Posts
    1

    Default Re: How to determine what software is using port 80 (or any other port)

    Win 7 Pro 64x bit suddenly started port 80 in use error.
    Had just changed to Teamviewer remote control software and it was the cause of "port 80 in use" http://localhost displayed teamviewer.
    Advanced section in Teamviewer has option to NOT use port 80 or 443.

  11. #11
    Member
    Real Name
    Marcel van Bussel
    Join Date
    May 2010
    Location
    Cyprus
    Posts
    14

    Default Re: How to determine what software is using port 80 (or any other port)

    In my case it was Skype using the port 80 for alternative... go to Skype and check in Tools / Options / Advanced / Connection... if the Box "Use port 80..." is ticked... that is one of the culprits. Untick and try again to launch the A5 server.

  12. #12
    Member
    Real Name
    Roelof
    Join Date
    Jul 2008
    Location
    Seattle, WA
    Posts
    737

    Default Re: How to determine what software is using port 80 (or any other port)

    Run an administrator command prompt (e.g. Start, search for cmd, right click on it, choose "Run as administrator", approve the UAC prompt if any.
    Type net stop HTTP
    If there are other running services that depend on the HTTP service, you'll get a list; double check to see if there's anything listed there you can't bear to do without. Or, if you're just stopping HTTP to use port 80 temporarily, make a note of those dependent services that you'll want to restart once you're done with the port. Either way, if it's okay, enter y to continue.
    Some dependent services might throw up stop control warnings that cancel the operation; just repeat net stop HTTP until it is stopped (i.e. until it says The HTTP service was stopped successfully.)
    Later on, you can restart any of the dependent services, using net start or by using the Services item in Administrative Tools, and the HTTP service will be started again automatically.

    This worked perfect and showed me what was stopped

  13. #13
    Member
    Real Name
    Chuck Stewart
    Join Date
    Feb 2013
    Location
    San Diego CA
    Posts
    67

    Default Re: How to determine what software is using port 80 (or any other port)

    Hello this thread is old but I'm having the same problem. I have done everything in this thread with no luck. I'm just trying to demo it to see if I want to buy it. Doesn't look good.

    Any Suggestions?

  14. #14
    Member
    Real Name
    Marcel van Bussel
    Join Date
    May 2010
    Location
    Cyprus
    Posts
    14

    Default Re: How to determine what software is using port 80 (or any other port)

    I think your problem may actually not be a port 80 problem but is related to the inability of the server to run on port 80 [providing external access] when it has not been activated [so you need to buy a license for that].

    If you want to demo, use port 8080 locally instead keeping in mind that the server will not allow external connections anyway as long as it is not activated.

    Good luck with the testing.

  15. #15
    Member
    Real Name
    Chuck Stewart
    Join Date
    Feb 2013
    Location
    San Diego CA
    Posts
    67

    Default Re: How to determine what software is using port 80 (or any other port)

    Hello,

    Thanks for your quick response. That is a plus! :) I changed the port and on to testing.

    thanks

  16. #16
    Member
    Real Name
    Roelof
    Join Date
    Jul 2008
    Location
    Seattle, WA
    Posts
    737

    Default Re: How to determine what software is using port 80 (or any other port)

    You can type in a command box, net stop http

    That helped me.

Similar Threads

  1. Port 80 Already In Use???
    By Rich Hartnett in forum Web Application Server v6
    Replies: 5
    Last Post: 07-28-2011, 11:55 AM
  2. Port 80 is already in use
    By wwolfe in forum Web Application Server v6
    Replies: 3
    Last Post: 10-19-2005, 09:20 PM
  3. AOL and port 587
    By urbanski in forum Alpha Five Version 6
    Replies: 7
    Last Post: 10-13-2005, 04:21 AM
  4. Port 80
    By Bill@TrackerSystems.com in forum Web Application Server v6
    Replies: 12
    Last Post: 09-21-2004, 10:43 AM
  5. USB Port
    By CubDriver in forum Alpha Four Versions 7 and 8
    Replies: 2
    Last Post: 12-01-2003, 08:11 AM

Posting Permissions

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