共用方式為


Changing BranchCache Ports

This section explains how to modify the port on the Hosted Cache server that is used by clients.

To change the port

  1. Open an elevated Command Prompt window (click Start, click All Programs, click Accessories, right-click Command Prompt, and then click Run as administrator).

  2. Type NetSH BranchCache set service mode=local, and then press ENTER.

  3. Close the elevated Command Prompt window.

Hosted Cache server

The Hosted Cache server downloads and caches content from clients by using TCP over port 80 by default:

     REG ADD "HKLM\Software\Microsoft\Windows NT\CurrentVersion\PeerDist\DownloadManager\Peers\Connection" /v ConnectPort /t REG_DWORD /d <NEWPORT> /f

     netsh br set ser hostedclient location=xxxx

Hosted Cache clients

Hosted Cache clients download content from Hosted Cache server by using TCP over port 80 by default:

     REG ADD "HKLM\Software\Microsoft\Windows NT\CurrentVersion\PeerDist\DownloadManager\Peers\Connection" /v ListenPort /t REG_DWORD /d <NEWPORT> /f

     netsh br set ser hostedserver

     restart peerdistsvc