Click here to Skip to main content
15,887,175 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I wanted to self hosted my ASP.Net app at home. My app is very simple, Movie Database.
But i'm unable to make this app reach online. Like im a the job and i can access to the website and add or remove a movie from the database.

I saw online a Pre-Build movie database but on Visual Studio I can only publish the website on 'localhost:1234'.
How can i make this app reach online, not only my home network.

What I have tried:

I have tried the Web Management Tools on Windows but with no success..
Posted
Updated 19-Apr-18 3:19am

You need to find out on what ip address your website can be reached, there are free services like What's My IP Address? Networking Tools & More[^] that can show you this.
You probably also need to check your router settings and see if nothing is blocking access.
If it still won't work, check your provider, some don't allow this kind of access.

A word of warning: using a self hosted application exposed to the internet is not exactly a good idea, see article here for an explanation: Kestrel web server implementation in ASP.NET Core | Microsoft Docs[^]
 
Share this answer
 
v2
Perfect,

Thanks you, I really appreciate your advice and thanks you help me out.
 
Share this answer
 
Comments
RickZeeland 19-Apr-18 15:17pm    
We did not notice your comment at first, you should use the "Have a Question or Comment" button to react. You can also mark the solution as answer or rate it with stars. Let us know if you got your website working :)
I think you are setting yourself up for real problems here, but in theory it';s reasonably simple: Use OWIN to Self-Host ASP.NET Web API 2 | Microsoft Docs[^]

But would I do it? No. Not even slightly. If only because you need a domain to make it a "proper" website (if you don't have one you will have to access it via an IP address instead, so you will need to make sure that your home internet provider has given you a Static IP address or it will change each time your router is reset.

Me? I'd find a cheap (or even free, if you don't mind the hassle you get with 'em) hosting service - many of them will register your domiona for you for free as well - and use their IIS server, database server, and almost certainly get domain related emails as well.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900