Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Tarik | WPPlumber 179 posts 801 karma points c-trib
    Feb 14, 2023 @ 12:17
    Tarik | WPPlumber
    0

    How to run an Umbraco CLI project on local network

    enter image description here

  • Meni 247 posts 483 karma points
    Feb 14, 2023 @ 16:11
    Meni
    0

    You type in the browser localhost:44315

  • Tarik | WPPlumber 179 posts 801 karma points c-trib
    Feb 14, 2023 @ 22:53
    Tarik | WPPlumber
    0

    Welcome @Meni, local network LAN not local machine!

  • Huw Reddick 1737 posts 6098 karma points MVP c-trib
    Feb 15, 2023 @ 08:31
  • Tarik | WPPlumber 179 posts 801 karma points c-trib
    Feb 15, 2023 @ 11:49
    Tarik | WPPlumber
    0

    Did you test it on the network? or dotnet core 7 ?

  • Huw Reddick 1737 posts 6098 karma points MVP c-trib
    Feb 15, 2023 @ 13:03
    Huw Reddick
    0

    Did you test it on the network? or dotnet core 7 ?

    Did you?

    Perhaps you could tell us what you have tried and what results you got and someone may be in a better position to offfer some assistance.

  • Tarik | WPPlumber 179 posts 801 karma points c-trib
    Feb 15, 2023 @ 17:49
    Tarik | WPPlumber
    0

    Did you?

    Don't take it wrong.. I see the question is clear and it is a usual process for developer.

    Until I find a solution you're welcome Huw Reddick.

  • Huw Reddick 1737 posts 6098 karma points MVP c-trib
    Feb 16, 2023 @ 12:55
    Huw Reddick
    0
    E:\Umbraco-Dev\Issue13777>dotnet run --urls "https://192.168.1.134:44390;http://192.168.1.134:42350"
    Building...
    [13:53:45 INF] Acquiring MainDom.
    [13:53:45 INF] Acquired MainDom.
    [13:53:45 INF] Now listening on: https://192.168.1.134:44390
    [13:53:45 INF] Now listening on: http://192.168.1.134:42350
    [13:53:45 INF] Application started. Press Ctrl+C to shut down.
    [13:53:45 INF] Hosting environment: Development
    [13:53:45 INF] Content root path: E:\Umbraco-Dev\Issue13777
    
  • Tarik | WPPlumber 179 posts 801 karma points c-trib
    Feb 16, 2023 @ 14:42
    Tarik | WPPlumber
    0

    I tested that before but not working..

  • Huw Reddick 1737 posts 6098 karma points MVP c-trib
    Feb 16, 2023 @ 16:04
    Huw Reddick
    0

    What doesn't work? Did you open the ports on your firewall?

  • Tarik | WPPlumber 179 posts 801 karma points c-trib
    Feb 24, 2023 @ 15:28
    Tarik | WPPlumber
    0

    Error's output on Mac OS Catalina:

     dotnet run --urls "https://192.168.1.134:8080;http://192.168.1.134:9090"
    Building...
    [16:25:14 INF] Acquiring MainDom.
    [16:25:14 INF] Acquired MainDom.
    [16:25:20 WRN] The ASP.NET Core developer certificate is not trusted. For information about trusting the ASP.NET Core developer certificate, see https://aka.ms/aspnet/https-trust-dev-cert.
    [16:25:20 ERR] BackgroundService failed
    System.OperationCanceledException: The operation was canceled.
       at System.Threading.CancellationToken.ThrowOperationCanceledException()
       at System.Threading.SemaphoreSlim.WaitUntilCountOrTimeoutAsync(TaskNode asyncWaiter, Int32 millisecondsTimeout, CancellationToken cancellationToken)
       at Umbraco.Cms.Infrastructure.HostedServices.BackgroundTaskQueue.DequeueAsync(CancellationToken cancellationToken)
       at Umbraco.Cms.Infrastructure.HostedServices.QueuedHostedService.BackgroundProcessing(CancellationToken stoppingToken)
       at Umbraco.Cms.Infrastructure.HostedServices.QueuedHostedService.ExecuteAsync(CancellationToken stoppingToken)
       at Microsoft.Extensions.Hosting.Internal.Host.TryExecuteBackgroundServiceAsync(BackgroundService backgroundService)
    [16:25:20 FTL] The HostOptions.BackgroundServiceExceptionBehavior is configured to StopHost. A BackgroundService has thrown an unhandled exception, and the IHost instance is stopping. To avoid this behavior, configure this to Ignore; however the BackgroundService will not be restarted.
    System.OperationCanceledException: The operation was canceled.
       at System.Threading.CancellationToken.ThrowOperationCanceledException()
       at System.Threading.SemaphoreSlim.WaitUntilCountOrTimeoutAsync(TaskNode asyncWaiter, Int32 millisecondsTimeout, CancellationToken cancellationToken)
       at Umbraco.Cms.Infrastructure.HostedServices.BackgroundTaskQueue.DequeueAsync(CancellationToken cancellationToken)
       at Umbraco.Cms.Infrastructure.HostedServices.QueuedHostedService.BackgroundProcessing(CancellationToken stoppingToken)
       at Umbraco.Cms.Infrastructure.HostedServices.QueuedHostedService.ExecuteAsync(CancellationToken stoppingToken)
       at Microsoft.Extensions.Hosting.Internal.Host.TryExecuteBackgroundServiceAsync(BackgroundService backgroundService)
    [16:25:20 INF] Stopping (environment)
    [16:25:20 ERR] Error while running callback
    System.ObjectDisposedException: Safe handle has been closed.
    Object name: 'SafeHandle'.
       at System.Runtime.InteropServices.SafeHandle.DangerousAddRef(Boolean& success)
       at System.Threading.WaitHandle.WaitOneNoCheck(Int32 millisecondsTimeout)
       at Umbraco.Cms.Infrastructure.Sync.DatabaseServerMessenger.<InitializeWithMainDom>b__37_0()
       at Umbraco.Cms.Core.Runtime.MainDom.OnSignal(String source)
    [16:25:20 INF] Released (environment)
    Unhandled exception.[16:25:20 ERR] Unhandled exception in AppDomain (terminating).
     System.Net.Sockets.SocketException (49): Can't assign requested address
       at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
       at System.Net.Sockets.Socket.Bind(EndPoint localEP)
       at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketTransportOptions.CreateDefaultBoundListenSocket(EndPoint endpoint)
       at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketConnectionListener.Bind()
       at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketTransportFactory.BindAsync(EndPoint endpoint, CancellationToken cancellationToken)
       at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure.TransportManager.BindAsync(EndPoint endPoint, ConnectionDelegate connectionDelegate, EndpointConfig endpointConfig, CancellationToken cancellationToken)
       at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.<>c__DisplayClass30_0`1.<<StartAsync>g__OnBind|0>d.MoveNext()
    --- End of stack trace from previous location ---
       at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.BindEndpointAsync(ListenOptions endpoint, AddressBindContext context, CancellationToken cancellationToken)
       at Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions.BindAsync(AddressBindContext context, CancellationToken cancellationToken)
       at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.AddressesStrategy.BindAsync(AddressBindContext context, CancellationToken cancellationToken)
       at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.BindAsync(IEnumerable`1 listenOptions, AddressBindContext context, CancellationToken cancellationToken)
       at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.BindAsync(CancellationToken cancellationToken)
       at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.StartAsync[TContext](IHttpApplication`1 application, CancellationToken cancellationToken)
       at Microsoft.AspNetCore.Hosting.GenericWebHostService.StartAsync(CancellationToken cancellationToken)
       at MicrosoSystem.Net.Sockets.SocketException (49): Can't assign requested address
       at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
       at System.Net.Sockets.Socket.Bind(EndPoint localEP)
       at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketTransportOptions.CreateDefaultBoundListenSocket(EndPoint endpoint)
       at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketConnectionListener.Bind()
       at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketTransportFactory.BindAsync(EndPoint endpoint, CancellationToken cancellationToken)
       at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure.TransportManager.BindAsync(EndPoint endPoint, ConnectionDelegate connectionDelegate, EndpointConfig endpointConfig, CancellationToken cancellationToken)
       at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.<>c__DisplayClass30_0`1.<<StartAsync>g__OnBind|0>d.MoveNext()
    --- End of stack trace from previous location ---
       at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.BindEndpointAsync(ListenOptions endpoint, AddressBindContext context, CancellationToken cancellationToken)
       at Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions.BindAsync(AddressBindContext context, CancellationToken cancellationToken)
       at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.AddressesStrategy.BindAsync(AddressBindContext context, CancellationToken cancellationToken)
       at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.BindAsync(IEnumerable`1 listenOptions, AddressBindContext context, CancellationToken cancellationToken)
       at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.BindAsync(CancellationToken cancellationToken)
       at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.StartAsync[TContext](IHttpApplication`1 application, CancellationToken cancellationToken)
       at Microsoft.AspNetCore.Hosting.GenericWebHostService.StartAsync(CancellationToken cancellationToken)
       at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken)
       at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
       at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
       at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.Run(IHost host)
       at UmbracoSQLite_11.Program.Main(String[] args) in /Users/wpplumber/Workspace/umb-sqlite/Program.cs:line 6
    ft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken)
       at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
       at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
       at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.Run(IHost host)
       at UmbracoSQLite_11.Program.Main(String[] args) in /Users/wpplumber/Workspace/umb-sqlite/Program.cs:line 6
    
  • Huw Reddick 1737 posts 6098 karma points MVP c-trib
    Feb 24, 2023 @ 18:33
    Huw Reddick
    0

    I don't know much about the MAC, but your problem is you are trying to bind a https address without an ssl certificate.

    Try this article https://dev.to/cesarcodes/troubleshooting-net-core-dev-certs-on-macos-179d

Please Sign in or register to post replies

Write your reply to:

Draft