dev-tunnels icon indicating copy to clipboard operation
dev-tunnels copied to clipboard

Dev Tunnels Issues - This site can’t provide a secure connection

Open DamoYouGit opened this issue 1 month ago • 1 comments
trafficstars

DevTunnels was such a great tool until it stopped working for now apparent reason.

I've installed the CLI trying to get a better understanding of what's happening in the background, but nothing.

I'm using VS22 not VSCode and creating the tunnel is no problem. when i try to run my local project i get this

Image

when i use devtunnel ping (devtunnel ping https://0pbvlk3m-7032.usw2.devtunnels.ms/ -v)

i get the below exception.

The SSL connection could not be established, see inner exception.

C:\Users\black>devtunnel ping https://0pbvlk3m-7032.usw2.devtunnels.ms/ -v HEAD https://0pbvlk3m-7032.usw2.devtunnels.ms/ Unhandled exception: System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.. ---> System.Net.Sockets.SocketException (10054): An existing connection was forcibly closed by the remote host. --- End of inner exception stack trace --- at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError, CancellationToken) at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource<System.Int32>.GetResult(Int16) at System.Net.Security.SslStream.EnsureFullTlsFrameAsync[TIOAdapter](CancellationToken, Int32) at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder1.StateMachineBox1.System.Threading.Tasks.Sources.IValueTaskSource<TResult>.GetResult(Int16) at System.Net.Security.SslStream.ReceiveHandshakeFrameAsyncTIOAdapter at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](Boolean, Byte[], CancellationToken) at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions, HttpRequestMessage, Boolean, Stream, CancellationToken) --- End of inner exception stack trace --- at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions, HttpRequestMessage, Boolean, Stream, CancellationToken) at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage, Boolean, CancellationToken) at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage, Boolean, CancellationToken) at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(QueueItem) at System.Threading.Tasks.TaskCompletionSourceWithCancellation1.WaitWithCancellationAsync(CancellationToken) at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage, Boolean, Boolean, CancellationToken) at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage, Boolean, CancellationToken) at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage, HttpCompletionOption, CancellationTokenSource, Boolean, CancellationTokenSource, CancellationToken) at Microsoft.DevTunnels.Cli.Diagnostics.HttpDiagnostics.PingHttpAsync(Uri uri, Nullable1 messageSize, TimeSpan interval, TraceSource trace, CancellationToken cancellation) in /__w/1/s/src/Tunnel/Src/CLI/Diagnostics/HttpDiagnostics.cs:line 472 at Microsoft.DevTunnels.Cli.Diagnostics.HttpDiagnostics.PingAsync(Uri uri, Nullable1 messageSize, TimeSpan interval, TraceSource trace, CancellationToken cancellation) in /__w/1/s/src/Tunnel/Src/CLI/Diagnostics/HttpDiagnostics.cs:line 397 at Microsoft.DevTunnels.Cli.Commands.PingCommand.PingAsync(String uri, Nullable1 size, Nullable`1 interval, CommonOptions options, CancellationToken cancellation) in /__w/1/s/src/Tunnel/Src/CLI/Commands/PingCommand.cs:line 56

Any help would be much appreciated

DamoYouGit avatar Oct 19 '25 14:10 DamoYouGit