Skip navigation

Q. How can I change the port that the BranchCache retrieval protocol uses?

A. The default HTTP port (80) can be changed by adding the value ConnectPort to the registry key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\PeerDist\DownloadManager\Peers\Connection. This registry key needs to be added on the hosted cache server and all clients. Once you make the change, open an elevated command prompt and run the commands

netsh branchcache set service hostedserver
net stop peerdistsvc
net start peerdistsvc

For the clients to detect the new port, you need to run the following commands on each client:

netsh branchcache set service hostedclient location=<hostedcache>
net stop peerdistsvc
net start peerdistsvc
Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish