Diagnose Internet Access Failures That Affect Only a Windows Service
Before you begin
- Applies to:Windows 11 services that cannot reach the internet from their service context.
- Where to start:Start on the affected PC and identify the service and the destination it cannot reach.
- What you need:Have the approved proxy settings. Ask the vendor to confirm whether the service uses WinHTTP, its own proxy settings, or another networking stack.
Guide tools
Troubleshooting Steps
Record the failed request and service identity
Start hereWhere to click
- Open Services and select the affected service’s Properties.
- Open Log On and record the account type. Read the application or vendor log for the request error.
What to look for · Match the application error with the timestamp and destination. A service may run under a different account from the browser and use other authentication or certificate stores.
Compare the relevant proxy settings
Collect evidenceRun the read-only command from PowerShell 7+ to inspect the basic WinHTTP configuration. Separately check Settings > Network & internet > Proxy for the interactive user. A Direct access result describes the displayed WinHTTP setting. An app can still use its own proxy, auto-discovery, or other advanced settings.
netsh.exe winhttp show proxyClassify the failure
Narrow the causeCompare the service’s error with DNS resolution, the destination or proxy port, and the service’s HTTP and TLS response. An HTTP 407 points to proxy authentication. A successful browser request or interactive TCP test does not establish that the service can authenticate.
Correct only the affected path
Choose a fixUse the vendor-supported service proxy configuration or have the network owner authorize a precise change. For certificate errors, confirm clock, hostname, and the trust store used by the service. Keep TLS validation enabled.
Verify from the service context
VerifyTrigger one approved request through the application’s supported diagnostic or normal workload. Confirm the service log records success for the same destination. Restore the prior approved configuration if the change has no effect.
Decide What to Do Next
| Finding | Next action |
|---|---|
| HTTP 407 from the proxy | Check the service identity and the proxy’s supported authentication. |
| TLS error in the service only | Compare the trust and certificate details used by the service. |
| Service still times out | Use service and proxy timestamps to locate the failed hop. |
References
Your feedback keeps these production procedures accurate and battle-tested.