When you cast an HLS stream, your Roku TV fetches every playlist and video segment by making HTTP requests back to your Windows PC on port 8011 — that is where the PC Caster local proxy is running. By default, Windows Firewall blocks all unsolicited inbound connections, which means the Roku’s requests never arrive, the stream stalls, and the TV screen blinks and goes dark. To allow the Roku through, PC Caster needs an inbound firewall rule named “PC Caster HLS Proxy” that permits TCP traffic on port 8011 over the Private network profile.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/iluisgm/PC_Caster/llms.txt
Use this file to discover all available pages before exploring further.
How PC Caster handles it automatically
The first time you click ▶ Cast to TV with an HLS stream, PC Caster callsensure_firewall_rule(8011) before launching the proxy. Here is the full function from hls_proxy.py:
hls_proxy.py
- Checks whether the rule already exists by running
netsh advfirewall firewall show rule name="PC Caster HLS Proxy". If it does, the function returns immediately — no prompt, no work. - If the rule is missing, it builds a
netshcommand to add it and runs it via PowerShell’s-Verb RunAs, which triggers a single UAC elevation prompt. The PowerShell window is hidden (-WindowStyle Hidden) so only the UAC dialog appears. - The rule is scoped to the Private network profile only — it does not open your PC on public Wi-Fi or domain networks.
The UAC prompt only appears once. After the rule is created it persists in Windows Firewall permanently, and PC Caster will skip this step on every subsequent cast.
Manual setup
If you clicked No on the UAC prompt, or if you are running PC Caster as a standard user on a managed machine, the rule will not have been added automatically. You can add it manually from an elevated (Administrator) terminal. PowerShell (recommended):netsh equivalent:
Verify the rule exists
To confirm the rule was added successfully, open Windows Defender Firewall with Advanced Security:- Press Win + R, type
wf.msc, and press Enter. - In the left panel, click Inbound Rules.
- Scroll or filter to find PC Caster HLS Proxy.
- The rule should show Enabled: Yes, Action: Allow, Protocol: TCP, Local Port: 8011, Profile: Private.
Action: Allow and LocalPort: 8011, the rule is in place and the Roku will be able to reach your PC.
The rule only applies to the Private network profile. If your home Wi-Fi is classified as Public in Windows, either change the network profile to Private (Settings → Network & Internet → Wi-Fi → your network → set to Private) or add
Profile=Any to the command above.