A Windows 10 service is using ports 40 and 443. How can I change them?

0

I want to use ports 80 and 443 for Apache server but they are reserved for a windows service as shown by netsh http show urlacl see output here

Firewall inbound rules show that BranchCache Hosted Cache Server is using ports 80 and 443 see screenshot here

I managed to change the port for BranchCache Content Retrieval from port 80 using this powershell script

I do not want to change the ports for Apache. How can I change the port for BranchCache Hosted Cache Server?

Drk

Posted 2019-11-16T14:40:51.030

Reputation: 1

Answers

0

BranchCache technology is used more for a network file server than for a client system such as Windows 10.

It is defined as:

BranchCache for Network Files provides support for BranchCache on this file server. BranchCache is a wide area network (WAN) bandwidth optimization technology that caches content from your main office content servers at branch office locations, allowing client computers at branch offices to access the content locally rather than over the WAN.

In a standard Windows 10 configuration, I would say that it is not required.

To disable it (link), run PowerShell as Administrator and enter the following command:

Disable-WSSBranchCache

harrymc

Posted 2019-11-16T14:40:51.030

Reputation: 306 093

Disable-WSSBranchCache : The term 'Disable-WSSBranchCache' is not recognized as the name of a cmdlet, function, script... – Drk – 2019-11-16T15:27:33.223

How did you install BranchCache? – harrymc – 2019-11-16T15:28:56.950

The powershell cmd: get-bcstatus shows that BranchCache is disabled – Drk – 2019-11-16T15:30:32.193

BranchCache came installed with windows 10. Although disabled, it has reserved ports 80 and 443 – Drk – 2019-11-16T15:32:23.373

It comes with Windows but is normally inactive and doesn't use any ports. Start the Services applet and see if the BranchCache service is running. In any case, you may double-click its entry and set Startup type to Disabled, just to be sure. It should then not present any difficulty for Apache. You also need to assure that IIS is not enabled in "Turn Windows features on or off". – harrymc – 2019-11-16T15:39:48.343

IIS is disabled and I have changed the startup type for BranchCache from manual to disabled but Apache isn't repsonding. netsh http show urlacl still shows that the ports are reserved – Drk – 2019-11-16T15:55:07.623

Reserved by what, is the question. Try using netstat -ano | findstr :80 to identify the listening process. – harrymc – 2019-11-16T16:11:35.157

UDP [fe80::11b0:b5ba:17a7:8083%17]:1900 *:* 5744 and

UDP [fe80::11b0:b5ba:17a7:8083%17]:65106 *:* 5744 – Drk – 2019-11-16T17:21:29.153

Firewall inbound rules clearly show it branch cache using the ports – Drk – 2019-11-16T17:23:27.340

In Task Manager, which process-id is 5744? – harrymc – 2019-11-16T17:24:10.523