简体   繁体   English

使用IP地址和端口从另一台计算机访问IIS托管网站

[英]Accessing IIS Hosted website from different machine using IP Address and Port

I have hosted an ASP .NET MVC website on IIS 7 on a machine, I have bounded the site with IP Address and Port and I can access it from that system by using http://[IP Address]:[Port Number], to get access from another system I have added a rule in Windows firewall as mentioned in this link . 我已经在一台计算机上的IIS 7上托管了一个ASP .NET MVC网站,我用IP地址和端口限制了该站点,并且可以使用http:// [IP地址]:[端口号]从该系统访问它,为了从另一个系统访问,我在Windows防火墙中添加了此链接中提到的规则。

But after completing the process I am still getting "The site cant be reached" error, 但是完成此过程后,我仍然收到“无法访问该网站”错误,

I've tried different solution including giving Full control permissions to All Groups and user names as mentioned in following screenshot but still cant get access to website. 我尝试了其他解决方案,包括授予所有组“完全控制”权限和用户名,如以下屏幕截图所述,但仍然无法访问网站。

在此处输入图片说明

I've searched alot on internet but couldn't get any effective solution. 我已经在互联网上搜索了很多,但没有任何有效的解决方案。

Few questions and suggestion that will help you in isolating the issue further. 很少有问题和建议可以帮助您进一步隔离问题。

  1. Does the application come up fine when you browse to it over localhost and IP address directly on the server ? 通过直接在服务器上通过localhost和IP地址浏览到该应用程序时,该应用程序运行正常吗?

  2. Look into IIS logs and see if the requests are even reaching IIS and share the status code here. 查看IIS日志,查看请求是否甚至到达IIS,并在此处共享状态代码。 Default Location - C:\\inetpub\\logs\\logfiles\\w3svc_websiteID 默认位置-C:\\ inetpub \\ logs \\ logfiles \\ w3svc_websiteID

  3. Stop your website in IIS. 在IIS中停止您的网站。 Create another website at port 80 and add a simple HelloWorld.html page and see if it comes up fine over localhost and also by accessing it from a client machine using IP address of the machine. 在端口80上创建另一个网站,并添加一个简单的HelloWorld.html页面,查看它是否可以在localhost上正常运行,也可以使用该计算机的IP地址从客户端计算机对其进行访问。

  4. If step 3 works and the sample website works fine, then change the port of the sample website to the non-working one. 如果第3步有效并且示例网站正常,则将示例网站的端口更改为无效端口。

  5. if step 4 fails, you need to concentrate in opening the port. 如果第4步失败,则需要集中精力打开端口。 You can also verify if the port is open or blocked by using a tool called PortQueryUI - Download it here 您还可以使用称为PortQueryUI的工具来验证端口是打开还是被阻止- 在此处下载

Let me know if you have any follow up questions. 如果您有任何后续问题,请告诉我。

Seems like it was an issue with my IP address which was dynamic, In beginning I tried and assumed that I've configured the static IP successfully but unfortunately couldn't. 好像我的IP地址是动态的,这是一个问题。一开始,我尝试并假设我已经成功配置了静态IP,但遗憾的是没有成功。 Now we are going to buy a static IP for our Website. 现在,我们将为网站购买静态IP。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 IIS-端口8080上的网站可以使用localhost访问,但不能使用外部IP地址访问 - IIS - Website at port 8080 can be accessed using localhost but not with external IP address IIS网站使用localhost但不能使用IP地址或域名 - IIS Website working using localhost but not with IP Address or domain names 将网站托管在MVC / IIS的另一台本地计算机上? - Embed a website hosted on another local machine in MVC/IIS? 从通过USB电缆直接与Windows机器连接的移动电话访问IIS网站 - Accessing an IIS Website from a mobile phone that is connected via usb cable directly with the windows machine 访问iis中托管的wcf服务可在localhost中运行,但如果通过ip:port / service.svc访问则无法运行 - Accesing wcf service hosted in iis works in localhost but not if accessed by ip:port/service.svc IIS托管网站未在另一台计算机上运行。 尽我所能,但找不到问题 - IIS Hosted website in not running on another machine. Try my best but not able to find issue 在IIS中使用IP地址绑定子应用程序 - Bind sub-application using IP Address in IIS FileZilla Ftp访问IIS托管网站 - FileZilla Ftp Access to IIS hosted website 使用IIS从https url中删除自定义端口号 - Remove the custom port number from https url using IIS UI在localhost和托管网站(GoDaddy)中看起来有所不同 - UI looks different in localhost and hosted website(GoDaddy)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM