Setup Windows Security to Avoid Port Allocation Conflicts - Windows Update 502 Bad Gateway: Step-by-Step Fix-How to Resolve Windows Defender Config Error

Final checklist
- Confirm that the same symptom is gone after a restart or refresh.
- Keep the smallest working change and undo temporary diagnostic settings.