How to Fix 'Port Already in Use' Error on Windows - Fix Windows Defender 504 Gateway Timeout Configuration Error-Fix Windows Defender Network Connection Issues

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