Disable Miracast Over Infrastructure on Surface Hub
Miracast Over Infrastructure (Infracast) has made significant improvements in both connection reliability and overall Miracast performance. In some environments however, Miracast Over Infrastructure can be problematic as the network may not meet the necessary bandwidth and throughput requirements. Because of this users may experience lag, pixilation, dropped frames, artifacting and delays in establishing a connection. When these issues occur there are two options to resolve the issue:
- Troubleshoot the network to determine why Miracast Over Infrastructure isn’t performing as expected. You can start by following the guidance on this page to test the networks bandwidth, throughput and overall reliability.
- Disable Miracast Over Infrastructure by using one of the below methods.
Method 1 – Firewall Port
Block outbound TCP port 7250 on either the projecting laptop or the network itself. This port is documented here.
Method 2 – Projecting Laptop MDM Policy
Deploy the following custom MDM Policy CSP to the projecting laptop:
./Vendor/MSFT/Policy/Config/WirelessDisplay/AllowProjectionFromPCOverInfrastructure
Data type: Integer
Value: 0
Method 3 – Surface Hub MDM Policy
Deploy the following custom MDM Policy CSP to the Surface Hub:
./Vendor/MSFT/Policy/Config/WirelessDisplay/AllowProjectionToPCOverInfrastructure
Data type: Integer
Value: 0
Method 4 – Projecting Laptop Registry
Modify the registry on the projecting laptop. Depending on the Windows build the registry key will be located in either of the following locations (change registry value to 0):
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PolicyManager\default\WirelessDisplay\AllowProjectionFromPCOverInfrastructure\value
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PolicyManager\current\device\WirelessDisplay\AllowProjectionFromPCOverInfrastructure
Confirm Miracast Over Infrastructure has been disabled
Follow the instructions on the Identify Miracast Connection Method to verify Wi-Fi Direct Miracast is now being used.