How to Connect the Server through Gateway

Hello,

I have two Windows PC with Materials Studio installed. Now, I want to use one of the PCs to set a connection through gateway to the other PC which has better computational resource, but I don't know how to configure the url and the port number of the gateway. Can anyone help me with this? Thank you!