Repository navigation
fix: the cast help on Windows gives firewall commands to copy, like Linux - #34
Merged
Merged
Conversation
…inux A phone could not find refryt on Windows: Windows Firewall dropped its discovery searches before they reached the app. The help counted on Windows' "allow access" prompt and said to allow private networks, but the prompt may never leave a rule, and a network Windows calls Public, the default, is not covered by one for private networks. The ? beside the cast setting now gives two New-NetFirewallRule commands with a Copy button, as it does for ufw and firewalld: UDP 1900 for discovery and the pairing port, for this exe, from this network's private range. The range is written out instead of LocalSubnet, since with that keyword the phone's searches were still dropped in testing. The README says the same.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On Windows a phone could not find refryt in its Cast menu. The cast receiver itself was fine (it answers a DIAL search sent from the same machine), but Windows Firewall dropped the phone's discovery searches before they reached the app: pktmon showed each
M-SEARCHfrom the phone dropped with "INET: receive inspection". There was no rule for refryt at all, and the network was one Windows calls Public, which a rule for private networks (what the help told people to allow) would not cover anyway.The
?beside the cast setting now gives Windows the same kind of copyable commands Linux has for ufw and firewalld: twoNew-NetFirewallRulelines, UDP 1900 for discovery and the pairing port over TCP, for this exe, from the network's private range, to run in PowerShell as administrator. The README's Windows line says the same.The range is written out rather than using
LocalSubnet. With aLocalSubnetrule the phone's searches were still dropped; with the range written out (192.168.10.0/24) the phone found the computer and cast to it.Tested on Windows 11 with an iPhone: with no rule the computer was not found; with a rule for the exe from
192.168.10.0/24(netsh, all ports) it was found and casting worked. The two commands in the help (port-scoped,192.168.0.0/16) were reviewed in the app but not yet run.