Home  >  Article  >  Backend Development  >  映射后,把端口不能给小弟我的IP,但是网站不能访问

映射后,把端口不能给小弟我的IP,但是网站不能访问

WBOY
WBOYOriginal
2016-06-13 10:07:591352browse

映射后,把端口不能给我的IP,但是网站不能访问
映射后,把端口给我的本地IP上,但是外网不能访问我的站。

而且用本地的IP给局域网其它电脑访问都不行,在自己电脑里输本地的IP地址访问也不行。

比如像这样:
http://localhost:8080/baidu_game/index.php
可以访问

http://192.168.4.233:8080/baidu_game/index.php

就不能访问了。(192.168.4.233)是我本地局域网的IP。


以前我用的PHP套件都可以的访问的,现在换成这个新套件就不能了。

还请指点一下。

------解决方案--------------------
ServerName localhost
改为
ServerName 192.168.4.233
------解决方案--------------------
嘮叨讓你修改hosts文件. 系統目錄下的drivers 下的etc 裏的hosts...
希望沒說錯路徑
------解决方案--------------------
在你的apache里面设置看看。
------解决方案--------------------

探讨

在你的apache里面设置看看。
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn