Can I connect to an azure hybrid connection from my dev machine?

Ole Morten Didriksen 1 Reputation point
2019-11-29T09:23:30.687+00:00

Hi I have set up a hybrid connection from "server-a" which is running the hybrid connection manager, and this serves up for example "localhost:5000". So I can access "server-a:5000" from my Azure App Service. This is working fine. Is there any way for me to connect my local computer to the hybrid connection? I want to somehow be able to reach "server-a:5000" from "my-developer-machine", not just from the App Service in production. Can this be done by running another hybrid connection manager on my development machine, or something? Thanks

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,933 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. ajkuma 26,721 Reputation points Microsoft Employee
    2019-12-03T13:15:04.99+00:00

    Welcome to Microsoft Q&A! Thanks for posting a good question!

    Apologies for the delay! I believe Port bridge or Reverse proxy of Relay HybridConnections feature
    would help your scenario.

    To highlight more, HCM is point to point and a feature found as part of App Services.
    Each HCM can support multiple Hybrid Connections. Also, any given Hybrid Connection can be supported by multiple HCMs. The default behavior is to route traffic across the configured HCMs for any given endpoint. If you want high availability on your Hybrid Connections from your network, run multiple HCMs on separate machines. The load distribution algorithm used by the Relay service to distribute traffic to the HCMs is random assignment. As I understand your scenario/requirement is for two different networks. Natively, Azure App service does not support this.

    Kindly take a look at these docs of Azure Relay HybridConnection SDK samples- https://github.com/Azure/azure-relay/tree/master/samples/hybrid-connections/dotnet/portbridge for relaying TCP Duplex style communication (which supports arbitrary binary protocols).

    Port Bridge is a point-to-point tunneling utility that allows mapping TCP listener ports and named pipes from some machine on network A to another machine on a different network B, and make it appear as if the listener were local on network B. For relaying TCP Duplex style communication (supports arbitrary binary protocols).

    If only HTTPS support is needed this may work for your scenario. It's simpler and doesn't require an ‘agent’ running on the sender side of the communication:
    https://github.com/Azure/azure-relay/tree/master/samples/hybrid-connections/dotnet/hcreverseproxy


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.