如何通过局域网访问您的网站在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)
- 确保你确实有IIS
安装好了!试着输入HTTP:在您的浏览器//本地主机/
键,看看会发生什么。如果没有发生这意味着您可以没有安装IIS。见Installing IIS(IIS
6.0) - 设置了IIS 如何建立你的第一个IIS Web站点
- 您甚至可能需要Install .NET框架(或您的服务器将只会静态的HTML页面,而不是asp.net页面)
- 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) - Set up IIS How to set up your first IIS Web site
- 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 \\
。读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.