views:

2993

answers:

3

hello,

I have an asp.net web-page application and i want it to be accessed using a local area network(LAN) or wireless area network(WLAN).

I do not know where to start. Is there something that i will configure in order for others to access my web-page??

I would really appreciate your answer, thanks a lot.. (^_^)...

+2  A: 

I'm not sure how stuck you are:

You must have a web server (Windows comes with one called IIS, but it may not be installed)

  1. Make sure you actually have IIS installed! Try typing http://localhost/ in your browser and see what happens. If nothing happens it means that you may not have IIS installed. See Installing IIS (IIS 6.0)
  2. Set up IIS How to set up your first IIS Web site
  3. You may even need to Install the .NET Framework (or your server will only serve static html pages, and not asp.net pages)

Installing your application

Once you have done that, you can more or less just copy your application to c:\wwwroot\inetpub\. Read Installing ASP.NET Applications (IIS 6.0) for more information

Accessing the web site from another machine

In theory, once you have a web server running, and the application installed, you only need the IP address of your web server to access the application.

To find your IP address try: Start -> Run -> type cmd (hit ENTER) -> type ipconfig (hit ENTER )

Once you have the IP address AND IIS running AND the application installed you can access you website from another machine in your LAN by just typing in the IP Address of you web server and the correct path to your application. If you put your application in a directory called NewApp, you will need to type something like http://your_ip_address/NewApp/default.aspx

Turn off your firewall

If you do have a firewall turn it off while you try connecting for the first time, you can sort that out later.

DrG
thank you very much for your detailed answer.. it helped me so much ,. (^_^).,
but i need to publish or deploy my website first before coming up with http://your_ip_address/NewApp/default.aspx .,?? am i right.,?? how can i publish it.,???
you can just copy and paste it to c:\inetpub\wwwroot\ then go to IIS and set it up as an application (try this one http://support.microsoft.com/kb/172138)
DrG
by the way ., i have found out that my machine is using IIS 7., how can i create a virtuAL directory in it.,??
try http://stackoverflow.com/questions/647484/how-to-create-a-virtual-directory-in-iis7-for-asp-net and http://msdn.microsoft.com/en-us/library/ms178477.aspx#
DrG
A: 

You will need to configure you IIS (assuming this is the web server your are/will using) allowing access from WLAN/LAN to specific users (or anonymous). Allow IIS trought your firewall if you have one.

Your application won't need to be changed, that's just networking problems ans configuration you will have to face to allow acces only trought LAN and WLAN.

MarmouCorp
A: 

Hi,

i have done same but I got following error on client machine:

Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's configuration tag to point to a custom error page URL.

but on localhost it working... Please help me

vikrant