简体   繁体   English

将网站托管到IIS中的本地

[英]Hosting Website to local in IIS

I am able to host website in IIS 8 but not with ip add. 我可以在IIS 8中托管网站,但不能使用ip add。 The binding with ip and browsing the site in chrome gives 'ERR_NETWORK_ACCESS_DENIED' http://localhost - works http://10.111.148.133/ - does not work. 与ip绑定并在chrome中浏览该站点会给'ERR_NETWORK_ACCESS_DENIED'http :// localhost-起作用http://10.111.148.133/-不起作用。

Seems you are using your public IP. 似乎您正在使用公用IP。

You can browse using your local IP address. 您可以使用本地IP地址进行浏览。 Your local IP address should be some thing like 192.168.xxx.xxx . 您的本地IP地址应该是192.168.xxx.xxx之类的东西。

You can check your local Ip address using the following command in command prompt. 您可以在命令提示符下使用以下命令检查本地IP地址。

ipconfig/all

if you want to access your site using public ip, then you need to port forward from your public IP to localIp by setting the DMZ Host in your router. 如果要使用公共ip访问站点,则需要通过在路由器中设置DMZ主机 ,从公共IP转发到localIp。

Along with the above answer, try going through your Firewall settings on the host computer and enabling anything related to IIS or port 80. 连同上述答案一起,尝试在主机上遍历防火墙设置并启用与IIS或端口80相关的所有功能。

You can easily figure out if your antivirus or firewall is the issue by temporarily disabling it. 您可以通过暂时将其禁用来轻松确定是否是防病毒或防火墙问题。

However, I think your issue is that you grabbed your public IP address, off whatsmyip.com or something, you just need to exec ipconfig to see what your local IP is. 但是,我认为您的问题是,您从whatsmyip.com或其他地方获取了公共IP地址,只需执行ipconfig即可查看您的本地 IP。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM