Skip to content

This is a tutorial is all about " how to host an ASP.NET webapp to iis and access it webapp locally with other devices"

Notifications You must be signed in to change notification settings

mbflores/uploadingasptoiis-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 

Repository files navigation

uploadingasptoiis-

This is a tutorial is all about " how to host an ASP.NET webapp to iis and access it webapp locally with other devices"

How to host your asp.net website on IIS (Internet Information Services), and access it locally

  1. Create a new Project(File->New->Project), and select Asp.Net Web Application (.Net Framework), and click ok

alt text

  1. Select MVC templates, and change the authentication to Individual User Accounts

alt text

3.Publish your project, right-click the project name, and click publish alt text

4.Make sure that you are in the Folder tab in the pick a publish target, and select a directory for the published project, then click publish. alt text

  1. Open your IIS, right-click “Sites” and click add Website

alt text

  1. Fill-up the necessary information and select the path of the project you published awhile ago in the visual studio, and click ok

alt text

  1. Application Pools-> right-click your Website->Advanced Settings, then change the value of Identity (Process Model) to LocalSystem, then click ok.

alt text

  1. This time you need to register your website, together with the “PORT” you supplied a while ago in step 6. Register the C:\Windows\System32\drivers\etc *There is no HostName Entered, so the url you would like to register is “localhost”

alt text

  1. Go to your lovely browser to test the URL of your site if your website is up and running

alt text

In order for your website to be locally accessed by other devices from your local area network.

alt text

  1. Add new Inbound Rule, click port->next, select tcp, select specific port “8080” for my case, where in that is the port I used in step 6 earlier. -> next, click allow the connection->next->next-> and name the rule you would wanted to, then click finish

alt text

  1. Open website, using another device connected in your network, and access your unit’s ip address:port(pertaining to localhost:8080) in my case, my unit’s ip is “192.168.1.5”, the the Url that I would like to access in my phone is, 192.168.1.5:8080

alt text

About

This is a tutorial is all about " how to host an ASP.NET webapp to iis and access it webapp locally with other devices"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published