Azure VPN client connecting to VPN server failed with exception: 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

James Liu 0 Reputation points
2023-08-10T12:44:13.3666667+00:00

My company switched to Azure cloud storage and I need to use the Azure VNP client to connect to the server from China. It worked fine for a while and then it stopped working by throwing error as:

[‎8‎/‎10‎/‎2023‎ ‎8‎:‎20‎:‎32‎ ‎PM] PId:[00024928] TId:[00021920] [Azure] [{44c205c3-38fb-442f-8a36-128cb667870f}] [Error] SId:[Primary] Connecting to VPN server failed with exception: 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.

[‎8‎/‎10‎/‎2023‎ ‎8‎:‎20‎:‎32‎ ‎PM] PId:[00024928] TId:[00021920] [Azure] [{44c205c3-38fb-442f-8a36-128cb667870f}] [Error] Connecting to VPN server failed with exception: Connecting to VPN server failed with exception: 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.

[‎8‎/‎10‎/‎2023‎ ‎8‎:‎20‎:‎32‎ ‎PM] PId:[00024928] TId:[00008608] [Azure] [{44c205c3-38fb-442f-8a36-128cb667870f}] [Verbose] Disconnecting...

Your advice is very much appreciated.

Azure VPN Gateway
Azure VPN Gateway
An Azure service that enables the connection of on-premises networks to Azure through site-to-site virtual private networks.
1,796 questions
{count} votes

3 answers

Sort by: Most helpful
  1. ChaitanyaNaykodi-MSFT 27,481 Reputation points Microsoft Employee Moderator
    2023-08-11T01:47:34.9933333+00:00

    @James Liu

    Welcome to the Microsoft Q&A forum.

    I understand you are facing an issue while connecting to a server located in China via Azure VPN. The error message indicates that the 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. You can try following the steps below and see if that helps in resolving the issue.

    • Reset VPN Gateway: As the VPN was working initially, resetting an Azure VPN gateway or gateway connection is helpful if you lose cross-premises VPN connectivity on the VPN tunnels. You can follow the documentation here for implementation.
    • If above does not help, you can enable Azure VPN Diagnostic Logs to help pinpoint the exact issue. You can take a look at P2SDiagnosticLog which can help you determine the cause of the issue.
    • Additionally, you can also set-up a packet capture for you VPN Gateway to help pinpointing the exact issue.

    Hope this helps! Please let me know if you have any additional questions. Thank you!


    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.


  2. JimmySalian-2011 42,511 Reputation points
    2023-08-11T15:21:43.0266667+00:00

    Hi,

    Where is your Storage located in which region you have deployed as China is bit different to the rest of the Azure Regions and it might have impact on the connectivity to the world, if the data and Storage is hosted in Azure China it is a different scenario check some of FAQ points for interoperatabilty and point to note is Azure global regions and Azure China regions are physically disconnected - https://learn.microsoft.com/en-us/azure/china/overview-connectivity-and-interoperability

    https://learn.microsoft.com/en-us/azure/china/resources-faq

    Hope this helps.

    JS

    ==

    Please Accept the answer if the information helped you. This will help us and others in the community as well.


  3. James Liu 0 Reputation points
    2023-08-15T04:52:42.67+00:00

    thanks for your answer. I will let our IT check and update you the results.


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.