title: OpenVPN connection refused error. TCP: connect to [AF_INET] XXX.XXX.XXX.XX:XXXXX failed: Unknown error
body: <p>I am not able to connect to my Open VPN server that I have created on TP link router AX10.
  I have created the server by going into the Advanced tab of the router page and enabling it.
  selected TCP and assigned a port in 4 digits.</p>
  <p>Then after saving the file I exported it to the client machine and tried connecting it.
  The ovpm file looks like the below file.</p>
  <p>I am getting the below error:</p>
  <pre><code>Thu Oct 21 17:03:54 2021 WARNING: Compression for receiving enabled. Compression has been used in the past to break encryption. Sent packets are not compressed unless &quot;allow-compression yes&quot; is also set.
  Thu Oct 21 17:03:54 2021 DEPRECATED OPTION: --cipher set to 'AES-128-CBC' but missing in --data-ciphers (AES-256-GCM:AES-128-GCM). Future OpenVPN version will ignore --cipher for cipher negotiations. Add 'AES-128-CBC' to --data-ciphers or change --cipher 'AES-128-CBC' to --data-ciphers-fallback 'AES-128-CBC' to silence this warning.
  Thu Oct 21 17:03:54 2021 OpenVPN 2.5.4 Windows-MSVC [SSL (OpenSSL)] [LZO] [LZ4] [PKCS11] [AEAD] built on Oct 20 2021
  Thu Oct 21 17:03:54 2021 Windows version 10.0 (Windows 10 or greater) 64bit
  Thu Oct 21 17:03:54 2021 library versions: OpenSSL 1.1.1l  24 Aug 2021, LZO 2.10
  Thu Oct 21 17:03:54 2021 TCP/UDP: Preserving recently used remote address: [AF_INET]XXX.XXX.XXX.XX:XXXXX
  Thu Oct 21 17:03:54 2021 Attempting to establish TCP connection with [AF_INET]XXX.XXX.XXX.XX:XXXXX [nonblock]
  Thu Oct 21 17:05:55 2021 TCP: connect to [AF_INET]XXX.XXX.XXX.XX:XXXXX failed: Unknown error
  </code></pre>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code> client
  dev tun
  proto tcp
  float
  nobind
  cipher AES-128-CBC
  comp-lzo adaptive
  resolv-retry infinite
  remote-cert-tls server
  persist-key
  persist-tun
  remote XXX.XXX.XXX.XX 11248
  &lt;ca&gt;
  -----BEGIN CERTIFICATE-----
  ******
  -----END CERTIFICATE-----
  &lt;/ca&gt;
  &lt;cert&gt;
  -----BEGIN CERTIFICATE-----
  *********
  -----END CERTIFICATE-----
  &lt;/cert&gt;
  &lt;key&gt;
  -----BEGIN PRIVATE KEY-----
  ************************
  -----END PRIVATE KEY-----
  &lt;/key&gt;</code></pre>
  </div>
  </div>
  </p>