# Dev Tunnels

Wisej.NET Hybrid enables you to build cross-platform apps that run either remotely (connected to a server) or locally (offline mode). When developing or debugging remote mode apps, Dev Tunnels provide an easy way to expose your local development server to the internet. This allows you to test your app on mobile devices or remote machines.

## Setting up Dev Tunnels

{% embed url="<https://learn.microsoft.com/en-us/aspnet/core/test/dev-tunnels?view=aspnetcore-9.0>" %}

## Configuring Hybrid Client&#x20;

After enabling and starting a Dev Tunnel site, set the **StartupUrl** in the Hybrid Client' **Startup** class to match the endpoint:

```csharp
using HybridLocal;
using Wisej.Hybrid.Native.Core;

namespace HybridClient
{
	public static class Startup
	{
		public static MauiApp Main()
		{
			var builder = MauiApp.CreateBuilder();
			builder
				.UseMauiApp<App>()
				.ConfigureFonts(fonts =>
				{
					fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
					fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
				})

				 .UseWisejOffline<OfflineStartup>()

				.UseWisejHybrid((config) =>
				{
					// Provide the startup URL for the Hybrid WebView.
					config.StartupUrl = "https://randomname.devtunnels.ms";
				});

			return builder.Build();
		}
	}
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.wisej.com/hybrid/debugging/dev-tunnels.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
