request.getRemoteAddr()获取的值为0:0:0:0:0:0:0:1
2015-09-22 10:23
561 查看
解决方式:
1、修改访问路径localhost:8080修改为127.0.0.1:8080
2、修改本机的配置文件C:\Windows\System32\drivers\etc下面有一个localhost的文件,你打开后可以看到# ::1 localhost的配置,你可以删除。其中你也可以修改本机的ip,例如你修改一下127.0.0.1为127.0.0.2,当你以后访问的时间127.0.0.2就是你的本机的ip了.
1、修改访问路径localhost:8080修改为127.0.0.1:8080
2、修改本机的配置文件C:\Windows\System32\drivers\etc下面有一个localhost的文件,你打开后可以看到# ::1 localhost的配置,你可以删除。其中你也可以修改本机的ip,例如你修改一下127.0.0.1为127.0.0.2,当你以后访问的时间127.0.0.2就是你的本机的ip了.
相关文章推荐
- 自学IOS(一)UI之Hello World与加法计算器
- keyChain保存uuid实现唯一标识
- iOS开发之UI_UIScrollView(下)
- NGUI基本控件制作
- comparison of floating point numbers with equality operator. possible loss of precision while rounding values
- 我的Android进阶之旅------>adbd cannot run as root in production builds 的解决方法
- does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE
- (绝对有用)iOS获取UUID,并使用keychain存储
- Java String与StringBuffer、StringBuilder的区别
- [UI基础]day01(代码)
- Servlet生命周期方法,request.getRequestDispatcher
- 源码推荐(9.22):利用UIScrollView实现几个页面的切换,纯代码实现水滴和波浪动画
- iOS软件开发 设置UITextView输入内容位置从左上角开始
- iOS开发之UI_UIScrollView(上)
- easyUI之datebox
- IOS巅峰之UICollectionView详解
- Servlet中The requested resource is not available错误
- 【android】uiselectoer 自动化测试
- UIAlertAction 和UIAlertController (UIAlertViewUIActionSheet)
- The requested URL /nagios/cgi-bin/statusmap.cgi was not found on this server