I developed an ASP.NET Web Application (API) in Visual Studio 2015 and published it in IIS 6.1 to access locally. Now I need to make my machine available as a server for external access. How to do this?
I developed an ASP.NET Web Application (API) in Visual Studio 2015 and published it in IIS 6.1 to access locally. Now I need to make my machine available as a server for external access. How to do this?
A complete answer depends on how structured your environment is, and is not trivial. I will list the requirements superficially; you need to work out the details.
I'm assuming:
The necessary steps would be:
This will allow you to offer your WebAPI to the internet in general. However several other points should be considered:
The author cites two types of hosting: Auto Hosted, IIS hosting
IIS hosting (which is the method you want), this is well detailed as shown below:
Host CustomerApp in IIS
Open IIS Manager by clicking Windows Start -> Run - > type inetmgr - > click OK
If IIS is not installed on your computer, click here to install. Go to the IIS manager and right click on places and select - > - > Add site.
Add a new web site to IIS
Enter the details, as shown in the image below
Enter site name as CustomerApp
Changing the Application Pool for ASP.net V4.0
Choose the physical path of the folder that contains the ASP.NET Web published API. - > I entered as C: \ CustomerApp
Enter the port number on which you want to host the API. I use the port - > such as 9810.
Links:
dotnetmentors.com
#