Unable to access Hadouken from remote computers

571 views
Skip to first unread message

Cyspoz

unread,
Oct 6, 2014, 2:58:36 AM10/6/14
to hadouken-bitt...@googlegroups.com
I'm trying to set-up Hadouken for remote access. I already found a topic here in the support forum. I set the binding to +, saved the configuration and restarted the Hadouken service. However, after that the webserver doesn't come online anymore and if I look in the logging I find the following error:

2014-10-06 08:53:36.677 +02:00 [Error] Failed to start HTTP server.
Nancy.Hosting.Self.AutomaticUrlReservationCreationFailureException: The Nancy self host was unable to start, as no namespace reservation existed for the provided url(s).

Please either enable UrlReservations.CreateAutomatically on the HostConfiguration provided to 
the NancyHost, or create the reservations manually with the (elevated) command(s):

netsh http add urlacl url=http://+:7890/ user=Everyone

   at Nancy.Hosting.Self.NancyHost.StartListener()
   at Nancy.Hosting.Self.NancyHost.Start()
   at Hadouken.Core.Http.HttpServer.Start()

Viktor Elofsson

unread,
Oct 6, 2014, 3:04:57 AM10/6/14
to hadouken-bitt...@googlegroups.com
Hi,

What user is your Hadouken service running as? It should run as "Local System" which should have permissions to listen on "+". Otherwise, run the following in an elevated command prompt,

netsh http add urlacl url=http://+:7890/ user=Everyone

//Viktor

Cyspoz

unread,
Oct 6, 2014, 4:14:22 AM10/6/14
to hadouken-bitt...@googlegroups.com
Hi Viktor,

I was using a Managed Service Account from the Active Directory domain the server (Windows Server 2012) is part of. I allowed that specific account the correct access rights with the netsh command and now it is working as expected, thanks to your response.

I am a little surprised, since I have more applications running with same type of accounts and can access these remote without any access right changes.

Anyway, thanks for the support, going to configure the rest and enjoy this fine client.

Op maandag 6 oktober 2014 09:04:57 UTC+2 schreef Viktor Elofsson:

Viktor Elofsson

unread,
Oct 6, 2014, 4:18:24 AM10/6/14
to hadouken-bitt...@googlegroups.com
Great! Just as a side-note - the HTTP server in Hadouken is built on http.sys (ie. not a pure sockets based approach) which requires administrative rights to listen on any other interface than localhost. Pure sockets based listeners do not have this limitation and I'll probably make this switch in the future.

//Viktor

pon...@gmail.com

unread,
Nov 1, 2014, 1:27:47 PM11/1/14
to hadouken-bitt...@googlegroups.com
Hi Viktor!

I think I have similar issue - I've run Hadouken service under domain user account (instead of Local System account). Service is started but I can't connect to web interface both remotely and local. Log has error:

2014-11-01 19:00:33.129 +02:00 [Error] Failed to start HTTP server.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Net.HttpListenerException: Access is denied
   at System.Net.HttpListener.AddAllPrefixes()
   at System.Net.HttpListener.Start()
   at Microsoft.Owin.Host.HttpListener.OwinHttpListener.Start(HttpListener listener, Func`2 appFunc, IList`1 addresses, IDictionary`2 capabilities, Func`2 loggerFactory)
   at Microsoft.Owin.Host.HttpListener.OwinServerFactory.Create(Func`2 app, IDictionary`2 properties)
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at Microsoft.Owin.Hosting.ServerFactory.ServerFactoryAdapter.Create(IAppBuilder builder)
   at Microsoft.Owin.Hosting.Engine.HostingEngine.StartServer(StartContext context)
   at Microsoft.Owin.Hosting.Engine.HostingEngine.Start(StartContext context)
   at Microsoft.Owin.Hosting.WebApp.StartImplementation(IServiceProvider services, StartOptions options, Action`1 startup)
   at Hadouken.Core.Http.HttpServer.Start()

I tried to fix this with netsh http add urlacl url=http://+:7890/ user=Everyone but it didn't help. Have you any ideas about this?



понедельник, 6 октября 2014 г., 11:18:24 UTC+3 пользователь Viktor Elofsson написал:

pon...@gmail.com

unread,
Nov 1, 2014, 3:39:59 PM11/1/14
to hadouken-bitt...@googlegroups.com
I solved my issue. :)
I ran
netsh http add urlacl url=http://+:7890/ user=Everyone
then
netsh http add urlacl url=http://localhost:7890/ user=Everyone
and finally add Delegate permission at both this entries using HTTP Server API Configuration tool (http://httpsysmanager.codeplex.com/).
If you run netsh http show urlacl you should get
Reserved URL            : http://+:7890/
    User: \Everyone
        Listen: Yes
        Delegate: No
    User: DOMASK\Torrent
        Listen: Yes
        Delegate: Yes
        SDDL: D:AR(A;;GX;;;WD)(A;;GXGW;;;S-1-5-21-644163661-3030432991-3155807574-1120)

Reserved URL            : http://localhost:7890/
    User: \Everyone
        Listen: Yes
        Delegate: Yes
        SDDL: D:AR(A;;GXGW;;;WD)


Now HTTP server starts without any errors in log file:
[Information] HTTP server accepting connections on ["http://+:7890/", "http://localhost:7890/"].

суббота, 1 ноября 2014 г., 19:27:47 UTC+2 пользователь pon...@gmail.com написал:

Olaf

unread,
Feb 15, 2015, 3:36:41 PM2/15/15
to hadouken-bitt...@googlegroups.com, pon...@gmail.com
Hi there I am trying to get it to work on Windows 8.1... but so far no succes..
I did the same as Pon...
Reply all
Reply to author
Forward
0 new messages