如何通过局域网访问您的网站在ASP.NET [英] How to access your website through LAN in ASP.NET

查看:110
本文介绍了如何通过局域网访问您的网站在ASP.NET的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个asp.net网页应用程序,我希望它使用的是局域网(LAN)或无线局域网(WLAN)进行访问。

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??

我真的AP preciate你的回答,非常感谢。(^ _ ^)...

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

推荐答案

我不知道怎么卡住你是:

I'm not sure how stuck you are:

您必须有一个Web服务器(Windows自带的一个叫做IIS,但它​​可能没有安装)

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


  1. 确保你确实有IIS
    安装好了!试着输入 HTTP:在您的浏览器//本地主机/ 键,看看会发生什么。如果没有发生这意味着您可以没有安装IIS。见<一href=\"http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/750d3137-462c-491d-b6c7-5f370d7f26cd.mspx?mfr=true\">Installing IIS(IIS
    6.0)

  2. 设置了IIS 如何建立你的第一个IIS Web站点

  3. 您甚至可能需要<一个href=\"http://www.microsoft.com/downloads/details.aspx?familyid=0856eacb-4362-4b0d-8edd-aab15c5e04f5&displaylang=en\">Install .NET框架(或您的服务器将只会静态的HTML页面,而不是asp.net页面)

  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)

安装应用程序

一旦你这样做,你可以或多或少只是复制您的应用程序 C:\\ wwwroot的\\的Inetpub \\ 。读<一个href=\"http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/fd7236aa-f429-4139-adc2-6834595d051f.mspx?mfr=true\">Installing ASP.NET应用程序(IIS 6.0)了解详情

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

从另一台计算机访问网站

在理论上,一旦你有一个Web服务器上运行,并安装应用程序,你只需要你的Web服务器来访问应用程序的 IP地址

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.

要找到你的IP地址尝试:
开始 - > 运行 - >键入 CMD (点击 ENTER ) - >键入 IPCONFIG (点击 ENTER

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

一旦你的IP地址和IIS运行和安装应用程序可以通过刚刚在你的Web服务器的IP地址和正确的路径到你的应用程序中输入访问网站,你从另一台计算机在您的局域网。如果你把你的应用程序在一个名为 NEWAPP ,你需要键入类似 HTTP://your_ip_address/NewApp/default.aspx

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

关闭您的防火墙

如果你有一个防火墙将其关闭,而你试图连接的第一次,你可以再整理了这一点。

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

这篇关于如何通过局域网访问您的网站在ASP.NET的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆