I want to connect to a gateway which is configured on port 8081

What is the gateway param that sets the port on which to connect on the gateway