• Port 80 permanently blocked – how to unblock?

    Home » Forums » Developers, developers, developers » Web design and development » Port 80 permanently blocked – how to unblock?

    Author
    Topic
    #2507769

    Hi, dear AskWoody community.
    Recently I ran into a misconfig, that drives me crazy. My laptop seems to reject web development, since my port 80 is blocked.

    Webdesign machine is Windows 10, winver 21H2.
    I installed XAMPP, as I did before and I cant make required services to run.
    The thing is, that port 80 is in use by “SYSTEM” and I cant find, whats blocking the port. Its just:
    PORT 80, SYSTEM, LISTENING, PID 4

    And there is nothing I can do about it. Is port 80 defautly blocked that way? Do I miss something? I can re-map Apache to the port 90, but it seems to not fix the issue, the Apache refuses to start even on port 90.

    Please help, it would be much appreciated, before I wipe the system and re-install from scratch. But something tells me, that it coud be “def behavior” of Windows 10.
    Any advice?

    Thanks,
    doriel.

    Dell Latitude E6530, Intel Core i5 @ 2.6 GHz, 4GB RAM, W10 20H2 Enterprise

    HAL3000, AMD Athlon 200GE @ 3,4 GHz, 8GB RAM, Fedora 29

    PRUSA i3 MK3S+

    Viewing 4 reply threads
    Author
    Replies
    • #2507770

      Do you have Internet Connection sharing enabled on any interface? That enables uPNP which might cause a running web server instance (in http.sys).

      • #2507785

        No, my internet connection is not shared, nothing external is connected neither through USB, ethernet cable nor WiFi. Ill remember to check this next time someone has this issue.
        I tried Paul T’s solution and it works for me. Thanks for support anyway.

        Dell Latitude E6530, Intel Core i5 @ 2.6 GHz, 4GB RAM, W10 20H2 Enterprise

        HAL3000, AMD Athlon 200GE @ 3,4 GHz, 8GB RAM, Fedora 29

        PRUSA i3 MK3S+

    • #2507773

      I change the web server port to 81 when that happens. You can still test, just not for production. If you need to use it externally for production, set a router port forward from 80 to 81, or whatever you have chosen.

      cheers, Paul

      1 user thanked author for this post.
      • #2507784

        Yes, perfect, re-setting the port to 81 works and Apache service is started now.

        Its for testing purposes, so this solution is acceptable to me. Thanks a lot for swift aswers, friends! Helped me a lot.

        Dell Latitude E6530, Intel Core i5 @ 2.6 GHz, 4GB RAM, W10 20H2 Enterprise

        HAL3000, AMD Athlon 200GE @ 3,4 GHz, 8GB RAM, Fedora 29

        PRUSA i3 MK3S+

    • #2507779

      Port 80 information here with an explanation that may help:

      https://www.techopedia.com/definition/15709/port-80

      Carpe Diem {with backup and coffee}
      offline▸ Win10Pro 2004.19041.572 x64 i3-3220 RAM8GB HDD Firefox83.0b3 WindowsDefender
      offline▸ Acer TravelMate P215-52 RAM8GB Win11Pro 22H2.22621.1265 x64 i5-10210U SSD Firefox106.0 MicrosoftDefender
      online▸ Win11Pro 22H2.22621.1778 x64 i5-9400 RAM16GB HDD Firefox114.0b8 MicrosoftDefender
      1 user thanked author for this post.
    • #2534607

      If its your windows firewall thats infact blocking it you can open the port by:

      Start -> Run

      Enter this: netsh firewall set portopening tcp 80 ENABLE

      Press OK.

      (If my memory doesn’t serve me wrong)

      EDIT: You need administrator rights to perform this

    • #2559979

      The first thing to try is to use the Windows command line to check what is using port 80. Run this command: netstat -ano | find “:80” This will list all the processes that are using port 80. This should give you an idea of what’s blocking the port, and you may be able to take action to stop it. If that doesn’t work, then you could try disabling any antivirus software and firewall programs you have running on your computer. There may be a setting in those programs that is blocking port 80. Finally, you could try manually changing which port Apache is using for its web server, as you suggested.

    Viewing 4 reply threads
    Reply To: Port 80 permanently blocked – how to unblock?

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: