D
D
Denis2015-12-09 11:35:58
ASP.NET
Denis, 2015-12-09 11:35:58

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);
        }

Tell me what I missed?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artyom, 2015-12-09
@den_labs

Have you tried the first result in Google search results?
stackoverflow.com/questions/21634333/hosting-webap...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question