Windows 7 - Hosting a webstie on lan - Asked By devender on 25-Nov-11 01:41 AM

I have created a simple HTML file for testing of the created website by me...

 I want to host it on my system installed Window7 ultimate.... Now I want to host it over my lan....


plz told me the whole procedure regarding my problem...


PLZ....
Jitendra Faye replied to devender on 25-Nov-11 01:43 AM

Deploy your website in IIS.

first configure your application with virtual directory.

for that follow these steps-

To create a virtual directory by using IIS Manager

1. In IIS Manager, expand the local computer and the Web site to which you want to add a virtual directory.

2. Right-click the site or folder in which you want to create the virtual directory, click New, and then click Virtual Directory.

Right-click the site or folder in which you want to create the virtual directory, click New, and then click Virtual Directory.

3. In the Virtual Directory Creation Wizard, click Next.

In the Virtual Directory Creation Wizard, click Next.

4. In the Alias box, type a name for the virtual directory and then click Next. Choose a short name that is easy to type, because users type this name to access the Web site.

In the Alias box, type a name for the virtual directory and then click Next. Choose a short name that is easy to type, because users type this name to access the Web site.

5. In the Path box, type or browse to the physical directory that contains the virtual directory, and then click Next.

In the Path box, type or browse to the physical directory that contains the virtual directory, and then click Next.

6. You can select an existing folder or create a new one to contain the content for the virtual directory.

You can select an existing folder or create a new one to contain the content for the virtual directory.

7. Select the check boxes for the access permissions that you want to assign to the users.

Select the check boxes for the access permissions that you want to assign to the users.

By default, the Read and Run Scripts check boxes are selected. These permissions enable you to run ASP.NET pages for many common scenarios. For more information, see the next section in this topic.

8. Click Next and then click Finish.

hope this will help you.

Riley K replied to devender on 25-Nov-11 01:44 AM

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


Regards
Reena Jain replied to devender on 25-Nov-11 01:51 AM
Hi,

As I know Visual Studio's web server is by design only accessible via the loop-back/local address. You will have to install IIS and deploy your site there in order to do what you want to do.

try this and let me know
devender replied to Jitendra Faye on 25-Nov-11 02:10 AM
plz told me the elaborated step with creating website and then virtual directory regarding windows 7
devender replied to Jitendra Faye on 25-Nov-11 02:10 AM
plz told me the elaborated step with creating website and then virtual directory regarding windows 7
Jitendra Faye replied to devender on 25-Nov-11 02:19 AM
After creating your own website you can host this in IIS.

Follow the steps , which I have given in previous post.
dipa ahuja replied to devender on 25-Nov-11 02:37 AM
You can run your project by hosting in IIS

Step 1 : Build - > Publish Web Site

Step 2 : Publish it in the IIS server's folder : C:\inetpub\wwwroot

Step 3: Open IIS 

Step 4:  Expand the Root Node of the IIS in the left panel. In the Sites node you will get you published site

Step 5 : Right click on the your site and Choose Convert to Application:



Step 6: Now it will be converted to application  Now Right click on it and choose Browse :



Done!
devender replied to dipa ahuja on 25-Nov-11 02:55 AM
thanx for your valuable help......

 with your pictorial explanations ,,,, I understood all the things..... now the website is running on my host.

But one problem is there from other computers on my LAN are not able to connect to my website. i.e. if i m trying to access my website from other system.. I m not able to see that page.

devender replied to Jitendra Faye on 25-Nov-11 02:56 AM
thanx for your valuable help......

 with your pictorial explanations ,,,, I understood all the things..... now the website is running on my host.

But one problem is there from other computers on my LAN are not able to connect to my website. i.e. if i m trying to access my website from other system.. I m not able to see that page.

Jitendra Faye replied to devender on 25-Nov-11 03:41 AM
Try to access using IP address.