Unable to connect on-prem orchestrator to UiPath assistant


I am trying to connect with the on-prem orchestrator but there seems to be a problem. I copied the machine key from the orchestrator where I created the robot. But it’s throwing me this error and the status of the robot is disconnected. Can anyone help?

I deleted robot and machine and then created a new one and pasted new machine key here and now it is giving me following error.