简体   繁体   English

从网络计算机访问IIS网站

[英]Access IIS website from network computer

I have setup a website in my local pc (IIS). 我已经在本地PC(IIS)中建立了一个网站。 I can access the site with my computer using "http://localhost:8088" and "http://myip:8088" but I can not access the site from another pc in network. 我可以使用“ http:// localhost:8088”和“ http:// myip:8088”在我的计算机上访问该站点,但无法从网络中的另一台PC访问该站点。 Anyone can tell me how can i do it?? 任何人都可以告诉我该怎么做?

If you PC is on a domain the you need to add your PC's name/network name and IP in the hosts file located at C:\\Windows\\System32\\drivers\\etc of the other PC. 如果您的PC在域上,则需要在另一台PC的C:\\Windows\\System32\\drivers\\etc主机文件中添加PC的名称/网络名称和IP。 Also ensure that port 8080 is available on open on the remote PC. 还要确保端口8080在远程PC上打开时可用。 Ensure that the other PC can ping your PC or at least connect to it if ICMP packets are switch off. 如果关闭了ICMP数据包,请确保另一台PC可以ping您的PC或至少与之连接。 For multiple PC on the domain I suggest setup DNS and your IIS settings properly to expose your PC to everyone. 对于域中的多台PC,建议您正确设置DNS和IIS设置,以将PC公开给所有人。

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

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