question

oledid avatar image
0 Votes"
oledid asked ·

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

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-webapps
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ajkuma-MSFT avatar image
0 Votes"
ajkuma-MSFT answered ·

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

· 1 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@oledid, Just checking if the solution was helpful or you need more information.
Please do 'Accept/Mark Answer' on the post that helps you for benefiting the community to find a helpful answer/post.

0 Votes 0 ·