TestProject Forum

Connecting to an Agent in MacOS from SDK in another machine

The agent is installed in a MacOS machine, and I am trying to connect to it from another machine where I am using an automation framework based in the Java SDK.

The agent will start in port 8585, but this port is only available to the local host. I can reach the agent from the outside at port 8443.

The problem is that connecting from the SDK to this particular port requires HTTPS protocol and will fail if I try with an HTTP call as you can see in this picture.

Now, if I try to do it with HTTPS, the SDK complains about SSL certificates, as seen in this image.

I was wondering if there is a way to tell the SDK to bypass certificate verification.

I solved the problem by adding rdr.tpagent.io to the hosts file of the client machine bound to the ip of the remote machine.