Error: "Cannot establish a TCP connection to server at '####:443'" in vSphere Client and Site Recovery UI
search cancel

Error: "Cannot establish a TCP connection to server at '####:443'" in vSphere Client and Site Recovery UI

book

Article ID: 388473

calendar_today

Updated On:

Products

VMware Live Recovery VMware vSphere ESXi

Issue/Introduction

Symptoms:

  • Multiple automated tasks generate in the vCenter Server and consistently fail every 1 to 2 minutes:
    Cannot establish a TCP connection to server at '##.##.##.###:443'. Details: 'https://##.##.##.###:443/hbr invocation failed with "org.apache.http.conn.ConnectTimeoutException: Connect to ##.##.##.###:443 [/##.##.##.###] failed: Connect timed out"'.
    Note : If vmk0 is enabled for vSphere Replication along with another VMK that is dedicated for vSphere Replication, both enabled with vSphere Replication traffic, vmk0 IP address is seen in the above stated error.

Environment

vSphere Replication 8.x
vSphere Replication 9.0, 9.0.2.4

Cause

  • probed over TCP port 443 to ensure it is available for virtual machine replication. This task fails because port 443 is blocked or otherwise unreachable over the network between the vSphere Replication appliance and the specific ESXi host.
  • Testing connectivity from the vSphere Replication appliance to the affected host's IP address on port 443 using curl confirms the connection timeout:

    curl -v telnet://##.##.##.###:443
    *   Trying ##.##.##.###:443...
    * connect to ##.##.##.### port 443 from ##.##.##.### port 48836 failed: Connection timed out
    * Failed to connect to ##.##.##.### port 443 after 129870 ms: Could not connect to server
    * closing connection #0
    curl: (28) Failed to connect to ##.##.##.### port 443 after 129870 ms: Could not connect to server

Resolution

Engage networking team to allow bidirectional TCP traffic over port 443 between the vSphere Replication appliance and the affected ESXi host.