Click here to Skip to main content
15,891,629 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how we can run website in ASP .Net on local Network.

like http://192.168.1.1:80/testwebsite/

So everyone can access in network using same URL.
Posted

If your website hosted in your local server, just use your server IP or server name.
If hosted in your PC,you must turn off you firewall , everyone can visit your website using your PC name, or IP(set a static ip or current IP).
If your website has port, must follow with your port.
like:
http://PC Name:port/testwebsite/
or
http://PC IP:port/testwebsite/

note: must turn off your firewall.
 
Share this answer
 
Make sure that your IIS service is installed in your windows components section in control panel.

After that run inetmgr.exe and add a new virtual directory to the default website and name it testwebsite and set its physical path to the root of your application folder.

The port number is set to 80 by default and there is no need to write it in the URL.
 
Share this answer
 
steps for above:

1) first, publish your website
1) make sure that IIS is installed.
2) go to run >>type inetmgr >> press enter
3) add new vertual directory >> set your default website path i.e testwebsite path.
4) set for default page i.e Login.aspx
5) click on browse.

now copy that path and if u want, then create shortcut, now u use this path to access over network.

hope this help.
 
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