java.net.ConnectException: failed to connect to /10.0.2.2 (port 80): connect

在使用GENYMOTION作为Android程序调试模拟器连接web服务器时,报了:java.net.ConnectException: failed to connect to /10.0.2.2 (port 80): connect

解决方法:使用genymotion进行调试时,不能使用10.0.2.2进行调试,而必须使用电脑主机的ip地址,类似于模拟器是通过wifi连接到主机。

使用ipconfig获得ip地址,在使用IP地址连接即可。

时间: 2024-11-03 03:43:42

java.net.ConnectException: failed to connect to /10.0.2.2 (port 80): connect的相关文章

java.net.ConnectException: failed to connect to /127.0.1.1 (port 8080)的解决办法

当你启动Tomcat后,在浏览器中输入http://127.0.1.1:8080/xxx.xx,你会发现你可以找打你要找的东西.但是当你在Eclipse中运行测试代码后,JUnit会一直报出这样的错误: java.net.ConnectException: failed to connect to /127.0.1.1 (port 8080) after 5000ms: isConnected failed: ECONNREFUSED (Connection refused)at libcore

SSH远程连接报错:Could not connect to '10.43.2.113' (port 22): Connection failed.

昨天Xshell远程连接我的本地虚拟机:10.43.2.113很正常,今天尝试了好几次都连接不上,如下图所示 登陆到虚拟机查看目前服务器开放的端口:ss -lnt 竟然没有22端口,那不就是说我的SSH服务没有启动么?可是昨天我远程连接没有任何问题,而且根本就没有关闭ssh服务,不管怎么说,既然服务没有启动,那就启动SSH服务,启动过程报错如下图所示: 呵呵,看到这,终于知道是什么原因造成我不能远程登陆了,昨天为了给mysql用户对mysql的数据目录有相关的权限,执行了chown –R mys

Cobbler安装Linux系统时报错 curl:(7)Failed connect to 10.0.0.201:80;Connection refused

问题原因: 其他涉及到http服务的端口全部都改成了81端口.只有 /etc/cobbler/settings 这里没有改. [[email protected]01 ~/]#grep -E "port: 81|server: 10" /etc/cobbler/settings http_port: 80 next_server: 10.0.0.201 server: 10.0.0.201 把 http_port: 80 改成81 再重启cobbler. cobbler sync就可以

错误已解决:java.net.ConnectException: Failed to connect to localhost/127.0.0.1

https://blog.csdn.net/qq_40892075/article/details/90347182 原文地址:https://www.cnblogs.com/liuwenpeng/p/12427321.html

java.net.ConnectException

真机测试时,在进行解析Apache service上的xml文件的时候遇到了网络连接的错误 (1)一开始写的url是?URL url = new URL("http://192.168.1.101/get_data.xml"); 报错:java.net.ConnectException: failed to connect to localhost/127.0.0.1 (port 3229) after 6000ms: isConnected failed: ECONNREFUSED

Install MariaDB Galera Cluster 10.0.20

安装环境: OS:Centos 6.6 [[email protected] ~]# uname -a Linux heartbeat1 2.6.32-504.el6.x86_64 #1 SMP Wed Oct 15 04:27:16 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux 数据库软件:MariaDB Galera Cluster 10.0.20 主机配置: Heartbeat1 10.0.0.7 Heartbeat2 10.0.0.8 Heartbeat

connection failed: socket,host=localhost,port=8100,tcpNoDelay=1: java.net.ConnectException: Connect

JAVA.openOffice.myeclipse 报错原因:没有启动openOffice服务. 解决办法: 运行→cmd,输入: cd C:\Program Files (x86)\OpenOffice 4\program 回车 再输入 soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard 回车 再重新run as/debug asjava源码,就好了. connect

Call From master/192.168.128.135 to master:8485 failed on connection exception: java.net.ConnectException: Connection refused

hadoop集群搭建了ha,初次启动正常,最近几天启动时偶尔发现,namenode1节点启动后一段时间(大约10几秒-半分钟左右),namenode1上namenode进程停掉,查看日志: 1 2017-08-28 21:54:37,617 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: slave1/192.168.128.136:8485. Already tried 9 time(s); retry policy

Caused by: java.net.ConnectException: Call From master/192.168.199.130 to master:9000 failed on connection exception: java.net.ConnectException: Connection refused; For more details see: http://wiki.

1:安装好hive,准备启动的时候出现下面的错误(由于hive是基于Hadoop的,所以必须先将你的集群启动起来,我就是没有启动集群,直接启动hive导致的错误): 1 [[email protected] bin]# ./hive 2 3 Logging initialized using configuration in jar:file:/home/hadoop/soft/apache-hive-1.2.1-bin/lib/hive-common-1.2.1.jar!/hive-log4j