How to self host asp.net web api over the internet?
<p>This question has been asked multiple times here and still i can't get my head around a few things about this since i'm a bigger beginner then most people here with programming in general. So this is my scenario to make you understand where i'm at, i apologize for the amount of text. I have created a .NET web api and uploaded it to a normal web app in Azure. I can now use this web api successfully over the internet.</p>
<p>Now i read about the cost/gb of the bandwith in Azure and realized that if this web api is scaled and used alot this could end up being extremely expensive(more than i can afford). I read around some more and saw sites like Arvixe and more offering unlimited bandwith in shared hosts, however after digging some more i found out that as soon people start getting high bandwith theese sites ban you for exploiting the service. I read some more and see people saying you can use VPS and dedicated servers as a good choice. I look into this and see that you need some experience setting up theese which i dont have and that the cost of renting a computer with good cpu and ram costs alot aswell, all i'm really looking for is to host the site, no configurations is needed.</p>
<p>Now i've gotten to where i read about self hosting web api. I figured i could use my own computer which has alot better CPU and Ram than thoose i can afford as VPS etc. i see LOTS of examples. But i dont really understand how they can be used practically over the internet just with localhost.</p>
<p><strong>Questions:</strong></p>
<p>Would there be a good choice to host this web api myself and can i do it safely without to much knowledge?</p>
<p>Alot of people refer to iis which i have never used but seen alot of examples using localhost. Since i already own a url can i use this instead from iss to run this from my own computer? and would it be considered safe?</p>
<p>I also see alot of people using Owin self host which does not need iis. Would this be the better alternative? like this for example <a href="http://www.asp.net/web-api/overview/hosting-aspnet-web-api/use-owin-to-self-host-web-api" rel="nofollow noreferrer">http://www.asp.net/web-api/overview/hosting-aspnet-web-api/use-owin-to-self-host-web-api</a></p>
<p><strong>Conclusion:</strong></p>
<p>What it all comes down to is that i'm looking for a way for a beginner to host a web api over the internet without having to worry about bandwith and cpu usage getting to high for me as a private person to afford.</p>
<p>Any input or help about where i can begin with this very appreciated, Thanks!</p>