BTW, I did fix the error. Turns out I was in a public network and the rule only applied to domain networks.
Also these fucking rules don't show in the usual GUI, you have to look into the registry. HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\SharedAccess\Parameters\FirewallPolicy\Mdm\FirewallRules Reddit post for rule source