通过LAN访问asp.net网站 [英] accessing asp.net website through LAN

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

问题描述

大家好,



我是这个ASP.NET技术的新手。我刚刚完成了我的网站。那么你们可以告诉我如何通过局域网访问它。我试过但失败了...



我的网页没有加载。它给我超时错误(错误110)。我正在使用IIS7.当我输入localhost时它会给我404错误...



请通过LAN提供访问我网站的方法来帮助我。

hi guys,

I am new to this ASP.NET technology. I have just finished my website. So can you guys tell me how to access that through LAN. I tried but failed...

My webpage isn't loading. It gives me timeout error( error 110). I am using IIS7.When I type localhost it gives me 404 error...

Please help me by giving method for accessing my website through LAN.

推荐答案

在局域网环境中从其他计算机访问ASP.NET应用程序时,您必须考虑/执行以下操作:



1.在IIS中为您要托管的计算机(服务器)上的应用程序创建一个应用程序/虚拟目录。

2.从LAN上的其他计算机ping服务器的IP地址从您想要访问应用程序的位置,以确保可以访问您的服务器。

3.注意 localhost将无法从远程计算机访问,而是使用以下内容:
While accessing your ASP.NET application from a different machine in a LAN environment you have to consider/do the following:

1. Create a Application/virtual directory in IIS for your application on the machine (Server) you want to host.
2. Ping the IP address of the server from other machine on the LAN from where you want to access the application, to ensure your server can be reached.
3. Note localhost will not be accessible from a remote machine, instead use the below:
Use http://<ip>:<port>/
Ex: http://10.23.103.5:8080/MyApplication/login.aspx
Will Not Work: http://localhost:8080/MyApplication/login.aspx
</port></ip>



4.您可以在服务器上按照以下步骤找到IP地址:


$ b $我是开始>运行

ii。输入 cmd 并点击确认键

iii。 DOS命令提示符打开

iv。输入 ipconfig 并点击输入

v。记下 IPv4地址即机器的IP地址/



5.您可以在IIS中找到托管它的端口号。


4. You will find the IP address by following the below steps, on the server:

i. Start > Run
ii. Type cmd and click on enter key
iii. DOS command prompt opens
iv. Type ipconfig and click on enter
v. Note down the IPv4 Address i.e. your IP address of the machine/

5. You can find the port number in IIS where it was hosted.


这篇关于通过LAN访问asp.net网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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