[已解决] java.net.ConnectException: Connection refused: no further information
2017-11-22 19:12
633 查看
gifisan
首页
新闻
新随笔
联系
管理
订阅
随笔- 23 文章- 0 评论- 3
[已解决] java.net.ConnectException: Connection refused: no further information
程序抛出这个异常的原因多数是因为在此[host:port]没有监听,那么该如何解决这个问题呢,如下第一个要做的是看你的host和port是否写错了,如 [ 127.00.1:8080 ]
第二个要看你的server是否真正的运行起来了,比如server在启动过程某些组件加载异常,会导致服务启动不成功。
第三个有可能是防火墙的原因,关闭防火墙试试
第四个就是如果你是自己写的socket那么检查如下:
//使用不带有host的InterSocketAddress socket.bind(new InetSocketAddress(port)); //而不是使用它 socket.bind(new InetSocketAddress(host,port)); //当bind操作带有host时,只能通过指定host加端口访问,否则会抛出异常 java.net.ConnectException: Connection refused: no further information
文章来源:http://www.cnblogs.com/gifisan/p/5406922.html
轻量级 Java NIO 工具包:https://github.com/generallycloud/baseio
分类: java,server,socket
好文要顶 关注我 收藏该文
gifisan
关注 - 1
粉丝 - 0
+加关注
0
0
« 上一篇:[已解决]
点击 【Show in system explorer】Eclipse卡死,未响应
相关文章推荐
- java.net.ConnectException: Connection refused: no further information
- java.net.ConnectException: Connection refused: no further information
- java.net.ConnectException: Connection refused: no further information
- java.net.ConnectException: Connection refused: no further information
- 运行时报的异常Caused by: java.net.ConnectException: Connection refused: no further information
- java.net.ConnectException: Connection refused: no further information
- 用eclipse的Hadoop插件连接虚拟机错误: java.net.ConnectException: Connection refused no further infomation
- java.net.ConnectException: Connection timed out: no further information
- HBase坑三java代码进行操作报错hbase Caused by: java.net.ConnectException: Connection refused: no further inform
- 异常:java.net.ConnectException: Connection timed out: no further information
- Tomcat出现 java.net.ConnectException: Connection refused 异常的原因及解决方法
- JMS集群部署问题 java.net.ConnectException: Connection refused; No available router to destination
- java.net.ConnectException: Connection refused问题解决办法
- 使用axis开发webservice服务java.net.ConnectException: Connection refused: connect异常的解决办法
- java.net.ConnectException: Connection refused: connect解决
- 使用axis开发webservice服务java.net.ConnectException: Connection refused: connect异常的解决办法
- 出现 java.net.ConnectException: Connection refused 异常的原因及解决方法
- java.net.ConnectException: Connection refused问题解决办法
- java.net.ConnectException: Connection refused: connect 完美解决(SQLserver2000)
- 解决 java.net.ConnectException: Connection refused: connect 异常