WebException: Unable to connect to the remote server

Noyon Chandra Das 341 Reputation points
2022-12-20T09:06:17.653+00:00

WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 40.125.122.155:443
at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)
at System.Net.HttpWebRequest.GetRequestStream()
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at Microsoft.UpdateServices.ServerSyncWebServices.ServerSync.ServerSyncProxy.GetAuthConfig()
at Microsoft.UpdateServices.ServerSync.ServerSyncLib.InternetGetServerAuthConfig(ServerSyncProxy proxy, WebServiceCommunicationHelper webServiceHelper)
at Microsoft.UpdateServices.ServerSync.ServerSyncLib.Authenticate(AuthorizationManager authorizationManager, Boolean checkExpiration, ServerSyncProxy proxy, Cookie cookie, WebServiceCommunicationHelper webServiceHelper)
at Microsoft.UpdateServices.ServerSync.CatalogSyncAgentCore.SyncConfigUpdatesFromUSS()
at Microsoft.UpdateServices.ServerSync.CatalogSyncAgentCore.ExecuteSyncProtocol(Boolean allowRedirect)

What will be the reason?
Can any one guide me with the solution to resolve this issue?

Thanks
Noyon

Microsoft Security | Intune | Configuration Manager | Deployment
Microsoft Security | Intune | Configuration Manager | Other
Windows for business | Windows Server | User experience | Other
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Adam J. Marshall 10,356 Reputation points MVP
    2022-12-20T13:05:12.953+00:00

    Is the IIS services started? Is WSUS Services Started? Have you tried restarting the server?

    Assuming the database is using the WID:

    https://www.ajtek.ca/wsus/how-do-i-connect-to-the-windows-internal-database-wid/

    Can you connect to it, expand databases, and expand the SUSDB database to expose all of the tables?

    Worst comes to worst, you can always reinstall WSUS

    https://www.ajtek.ca/wsus/how-to-remove-wsus-completely-and-reinstall-it/

    2 people found this answer helpful.
    0 comments No comments

  2. CherryZhang-MSFT 6,496 Reputation points
    2022-12-22T06:37:34.517+00:00

    Hi @Anonymous ,

    1, Have you tried the methods provided by AJTek-Adam-J-Marshall? Has it solved your problem yet?

    2, If the problem persists, could please descript more about your problem? To narrow down the problem, we may need to know the context about the question.

    3, Does this issue occur in all clients or only a small amount? Have you check your Site Bindings and related SSL certificate? Are they all configured correctly? Is port 443 available?
    273144-1.png

    4, Besides, I found two similar threads, both indicating that this error may be caused by firewall, please help check it.
    The threads for your reference:
    System.Net.WebException: Unable to connect to the remote server (microsoft.com)
    WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it XXX.XXX.XXX.XXX:8350 (microsoft.com)

    Looking forward to your feedback.

    Best regards
    Cherry


  3. CherryZhang-MSFT 6,496 Reputation points
    2023-01-04T01:47:47.61+00:00

    Hi @Rakesh Kumar ,

    Thanks for your feedback and sharing. We're glad that the question is fixed now. Here's a short summary for the problem, we believe this will help other users to search for useful information more quickly. It's appreciated that you could click "Accept Answer" to the reply.

    Problem/Symptom:
    WSUS server error: WebException: Unable to connect to the remote server

    Solution/Workaround:
    Add some Microsoft Recommended URL over the network.

    Thanks again for your time! Have a nice day!

    Best regards,
    Cherry

    0 comments No comments

  4. Anonymous
    2023-07-05T10:55:16.42+00:00

    Hi @CherryZhang-MSFT ,

    By any chance, do you happen to know the URLs supposed to be allowed? I have been facing same issues for several months and after MS recommendations, forwarded some MS KB to ensure the site/ports allowed. But Firewall team says that, all the MS Services are allowed over firewall and IP(40.127.197.145:443) continues to fail in an alternate days. :(


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.