Answer the question
In order to leave comments, you need to log in
How to call Web API (OWIN Self Host) method from another machine?
Hello.
There is a Web API (OWIN Self Host), which is quietly twitching through PostMan (or a browser).
I try to access these methods from another machine that is on the network, I get ERR_CONNECTION_TIMED_OUT.
Here is an example start:
public void Start(string apiUri)
{
var opts = new StartOptions { ServerFactory = "Microsoft.Owin.Host.HttpListener" };
opts.Urls.Add("http://*:9030");
hostApp = WebApp.Start<Startup>(opts);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question