diff --git a/uwp/security/web-authentication-broker.md b/uwp/security/web-authentication-broker.md index b3f7cb712d..4289586e0c 100644 --- a/uwp/security/web-authentication-broker.md +++ b/uwp/security/web-authentication-broker.md @@ -178,3 +178,28 @@ The Fiddler web debugger can be used with apps. For more information, see [Fiddl ``` 3. Add a firewall rule for incoming traffic to Fiddler. + + You can create the firewall rule using either the command line or the Windows Defender Firewall GUI: + + **Option A: Using netsh command (run as administrator):** + + ```cmd + netsh advfirewall firewall add rule name="Fiddler for AuthHost Debugging" dir=in action=allow program="C:\Program Files\Fiddler\Fiddler.exe" enable=yes + ``` + + If Fiddler is installed in a different location, adjust the path accordingly. Alternatively, you can create a port-based rule: + + ```cmd + netsh advfirewall firewall add rule name="Fiddler Port for AuthHost" dir=in action=allow protocol=TCP localport=8888 + ``` + + **Option B: Using Windows Defender Firewall with Advanced Security:** + + 1. Open Windows Defender Firewall with Advanced Security (run `wf.msc`) + 1. Click "Inbound Rules" in the left pane + 1. Click "New Rule..." in the right pane + 1. Select "Program" and click Next + 1. Browse to your Fiddler executable (typically `C:\Program Files\Fiddler\Fiddler.exe` in a per-machine installation) and click Next + 1. Select "Allow the connection" and click Next + 1. Check all network types (Domain, Private, Public) and click Next + 1. Give the rule a name like "Fiddler for AuthHost Debugging" and click Finish