c# - How to launch self-hosted OWIN-based web api on my domain? -


i deploy asp.net web api on domain bought. want self-host it, don't need iis. read tutorials, need launch console application on server can self-host web api:

public class program {     static void main(string[] args)     {         // specify uri use local host:         string baseuri = "http://localhost:8080";          console.writeline("starting web server...");         webapp.start<startup>(baseuri);  // startup class has configurations web api         console.writeline("server running @ {0} - press enter quit. ", baseuri);         console.readline();     } } 

the problem is, able drop files on domain ftp client (such winscp). need run application on domain can route http requests web api?

you can run console application on machine @ home (although, need forward requests public ip of router, , allow port-forwarding on router appropriate private ip address hosting application) or run console application on ec2 instance in amazon web services (aws... several other cloud-based service providers, , similar forwarding of requests , not aws setup). suggest reading domains, hosting, request forwarding, , port-forwarding prior moving forward. unlikely current setup allow run application (in providing service of hosting static content... although hosting providers may allow execution of custom applications , scripts).


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -