Url for testing HttpServer with emulator

Nov 6, 2010 at 1:56 PM

What would the default Url be to get to an HttpServer hosted by the emulator?  The server code appears to start up properly (returns true).  Would it be http://localhost/???

Nov 6, 2010 at 2:11 PM

Hi James,

by default the HttpServer is using port 80 on localhost but in emulator this port is not working (this is NO bug in HttpServer). To get it working in emulator you should create the instance with the constructor port argument:

using (HttpServer http = new HttpServer(81, new MyHttpHandler()))
    while (!stopThread)

Does this help?


Nov 6, 2010 at 2:18 PM

That works perfectly - thanks!!