Network and certificates

0x80072EFD: A connection with the server could not be established

The client found the server but could not open a connection to it. A closed port, a stopped web site or a firewall is the usual reason.

Hex code0x80072EFD
Decimal-2147012867
NameERROR_WINHTTP_CANNOT_CONNECT
Logs to readLocationServices.log, CcmMessaging.log, ccmsetup.log, DataTransferService.log, WUAHandler.log, smsts.log

What 0x80072EFD means

The client resolved the server name, then failed to connect. It is the WinHTTP "cannot connect" error. The server refused the connection or the path is blocked.

In SCCM you see it in ccmsetup.log, LocationServices.log, CcmMessaging.log, WUAHandler.log and smsts.log. The target is a management point, distribution point or software update point.

Common causes

  • IIS or the web site is stopped on the site system.
  • A firewall blocks the port, such as 80, 443, 8530 or 8531.
  • The client uses the wrong port, for example HTTP against a site system that only accepts HTTPS.
  • A WinHTTP proxy is set and cannot reach the server.
  • The server is down or restarting.

How to fix 0x80072EFD

  1. Find the address and port in the log

    Open the log that shows the code. Read the address on the line above it. Note the server, the port and whether it is HTTP or HTTPS.

  2. Test the port

    Run the test below from the client. If TcpTestSucceeded is False, test again from a computer on the same network as the server. That shows whether the server or the network path is at fault.

  3. Check IIS on the site system

    On the server, open IIS Manager. Confirm that the Default Web Site, or the WSUS Administration site, is started. Check that the World Wide Web Publishing Service is running. For a management point, read MPControl.log on the server. It should show status code 200.

  4. Check ports and the HTTPS setting

    In the console, open Administration, Site Configuration, Sites. Open the site properties and read the Ports tab. Then check whether the site system is set to HTTP or HTTPS. Clients must be able to reach that port through every firewall.

  5. Check the proxy

    Run netsh winhttp show proxy. Bypass the proxy for internal servers, or reset it with netsh winhttp reset proxy.

Commands that help

Test the connection to a site system · PowerShell
Test-NetConnection -ComputerName mp.contoso.com -Port 80
Test-NetConnection -ComputerName mp.contoso.com -Port 443
Got a different code?

Turn any hex or decimal error code into its meaning, or search every code on this site.

Error code lookup All SCCM error codes

✉

Get new articles in your inbox

SCCM guides, AI tools, automation tips — sent when published. No spam.