servicestack - AppHostHttpListenerBase & Remote Connections -


i've setup small servicestack using self-hosting via apphosthttplistenerbase class. instead of using localhost or 127.0.0.1 baseuri, i'm using ip of machine. when connecting locally works great, when connecting other devices (laptops, desktops, tablets, etc.) times out.

here apphost , how launch it.

public class apphost : apphosthttplistenerbase {     private static ilog log;      public apphost() : base("servicestack examples", typeof(apphost).assembly)     {         logmanager.logfactory = new debuglogfactory();         log = logmanager.getlogger(typeof(apphost));     }      public override void configure(container container)     {     } }  string path = "http://192.168.3.125:8889/"; var apphost = new apphost(); apphost.init(); apphost.start(path); system.console.writeline("apphost created @ {0}, listening on {1}", datetime.now, path); thread.sleep(timeout.infinite); system.console.writeline("readline()"); system.console.readline(); 

this being developed in xamarin compiled .net 4.0 using latest servicestack libs, etc. running on windows 8 pro , launch xamarin administrator rights, etc.

am missing something? i've looked on haven't seen seems point me in specific direction. nor did see disclaimers @ https://github.com/servicestack/servicestack/wiki/self-hosting not allowing remote connections.

if supply specific ip , port, listen incoming connections on ip:port. i.e. wont work if connect machine using different ip. can use wildcard listen ips on machine, e.g:

apphost.start("http://*:8889/"); 

otherwise if still doesn't work it's being blocked firewall.


Comments