c# - Self-hosting ServiceStack REST Service on local network -
i wondering if - have local network (wireless, computer , laptop connected it) , i've tried hosting rest service developed servicestack on it. if run application on computer (a console app now) , try access service using machine ip or 127.0.0.1 works fine - if try , access laptop, using computer's ip stalls, , rest service never called.
i've tried turning off firewalls etc, running in admin mode still nothing.. missing simple working?
any appreciated!
some of code samples (my apphost class inheriting apphosthttplistenerbase)
restservicetostart.value.init (); restservicetostart.value.start (_hosturi);
where main machine, _hosturi set "http://my-ip-address:8080/"
you haven't listed code use start apphost (please descriptive when asking questions) i'm going assume you're not listening http://*:{port}/
, e.g. self hosting wiki:
var apphost = new apphost(); apphost.init(); apphost.start("http://*:1337/");
the *
wildcard says listen on every local network interface.
Comments
Post a Comment