What are Dev Tunnels in Visual Studio?

What are Dev Tunnels in Visual Studio?

It provides a capability so that machines that cannot be directly connected to each other can be connected to each other. In fact, it provides an ad-hoc connection between machines.?After configuring this feature, when running the application in Visual Studio, it can be run on addresses that other applications have access to instead of addresses such as localhost. In fact, before, without using Dev tunnels, your applications strat usually used addresses like https://localhost:7223, but while using Dev tunnels, your applications start using addresses like https:// l8lh5vfv-44397.uks1.devtunnels.ms

Prerequisites

1.???? Visual Studio 2022 17.6 or newer (This feature is not available in Visual Studio for Mac)

2.???? ASP.NET and Web Development workload installed

How to Configure Dev Tunnels?

1. Select your web project, and from Debug dropdown, select Dev Tunnels > Create Tunnel.

2. In the Create a Tunnel window:

1.???? Select the account which is used to create a new tunnel. You need to provide your Microsoft or GitHub account.

2.???? Provide a name for the Tunnel. This name is used in Visual Studio only when selecting a tunnel.

3.???? Select the Tunnel Type. Tunnel type can be either Temporary or Persistent. Temporary Tunnel will generate a new Url each time you open the Visual Studio. On the other hand, Persistent Tunnel will reuse the same Url.

4.???? Select the Access type and level. Tunnels can have either Private, Organization, or Public access types. With the Private access type, the Tunnel is only available to the person who created it. With the Organization access type, the Tunnel will be available for the organization(s) the account is a member of. Finally, the Public access type does not require authentication, and the generated Url will be publicly available. Of course, the public access type should be used with caution.

After setting these properties, click on Ok to create the Tunnel. After clicking Ok, the create tunnel window will be closed. So wait until the "dev tunnel has been successfully created" message appears.

You can click on Continue to navigate to your web application.



Hery Emanuel Fuka Rodrigues

Cegid Primavera |Power Automate | PostgreSQL | Power B.I | SSIS | SQLServer | Analista de Dados (Data Analyst)

3 个月

Grande professional Jo?o Eduardo Pequena

要查看或添加评论,请登录

Jo?o Eduardo Pequena的更多文章

社区洞察

其他会员也浏览了