net stop NlaSvc && net start NlaSvc in an admin Command Prompt, then refresh your broker’s page.If your Forex login fails after your Windows 10 PC wakes from sleep, open Command Prompt as admin and run net stop NlaSvc && net start NlaSvc to reboot the network stack—then refresh your broker’s page.
What’s Happening
When your Windows 10 machine sleeps, the Network Location Awareness service (NlaSvc) can get stuck in a stale state. Your Forex platform still has an internet route on paper, but the live socket is orphaned. Windows 10 build 22H2 and later cache the old route until the service is explicitly restarted. No registry edits or driver updates are required—just a quick NlaSvc reset.
Step-by-Step Solution
- Open an elevated Command Prompt
- Press Win + X, choose Terminal (Admin).
- If you still see “Command Prompt” instead of “Terminal”, right-click Start → Run, type
cmd, then press Ctrl + Shift + Enter.
- Stop and restart the Network Location Awareness service
- Type this command and press Enter:
net stop NlaSvc && net start NlaSvc
- The command returns “The Network Location Awareness service was stopped successfully” followed by “The Network Location Awareness service was started successfully”.
- Type this command and press Enter:
- Flush the DNS cache
- In the same elevated window, run:
ipconfig /flushdns
- In the same elevated window, run:
- Refresh your Forex platform
- Close and reopen your browser or trading terminal.
If you use MetaTrader 4/5, right-click the icon → Exit, wait 10 s, then restart it.
- Close and reopen your browser or trading terminal.
