You can find the hostname and port needed to connect to your layer when you sign in on the client portal.
The connection details will be under the "Address" box on the right-hand side of the layer console screen. As shown below. It's formatted as <IP/HOSTNAME>:<PORT>.