We are running into difficulties when trying to set up a gateway. I can get it running fine locally, similar to the documentation you provided, but once I need to change the localhost addresses, things start to break down.
Our first endpoint runs on a Windows Service (external service), our other endpoint runs on the Azure Service Fabric, specifically within a Stateless service running Web API. We are accessing the service through a remote proxy, which is necessary to contact a service within service fabric from outside service fabric. This works fine, as I am able to access my Web API controllers and actions through the reverse proxy port, but I keep getting 504 Gateway Timeouts for the Gateway channel.
In my external service, I define a Site with the address
http://clustername.azure.com:19008/MyApp/MyApiService/FCS.Fueling/
In my Azure Service Fabric Web API stateless service, the channel is set up with the address
http://clustername.azure.com:8424/MyApp/MyApiService/FCS.Fueling/
19008 is the reverse proxy port. If I navigate to http://clustername.azure.com:19008/MyApp/MyApiService/api/values values are returned and the service is running fine.
8424 is the port of the API inside service fabric. I've also tried 19008 for the incoming channel, to no avail.
FCS.Fueling is just a channel endpoint I've specified. In localhost, both of the endpoints being http://localhost:25000/FCS.Fueling worked, messages were received successsfully between my service fabric and external service.
I've tried all sorts of combinations of localhost, removing the FCS.Fueling bit, different ports I keep getting 504 Gateway timeouts.