欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

关于 Android WiFi 调试 出现“ 由于目标计算机积极拒绝,无法连接。 (10061)”

程序员文章站 2022-03-28 13:32:55
D:\work_space\XXX>adb devicesList of devices attached0123456789ABCDEF deviceD:\work_space\XXX>adb shell ifconfig wlan0wlan0 Link encap:Ethernet HWaddr 00:92:fa:08:8e:a7 inet addr:192.168.3.108 Bcast:192.168.3.255 Mask:2....
D:\work_space\XXX>adb devices
List of devices attached
0123456789ABCDEF        device


D:\work_space\XXX>adb shell ifconfig wlan0
wlan0     Link encap:Ethernet  HWaddr 00:92:fa:08:8e:a7
          inet addr:192.168.3.108  Bcast:192.168.3.255  Mask:255.255.255.0
          inet6 addr: fe80::6b8c:7f00:ffde:247c/64 Scope: Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:76 errors:0 dropped:0 overruns:0 frame:0
          TX packets:152 errors:1 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:23254 TX bytes:18116


D:\work_space\XXX>adb connect 192.168.3.108
cannot connect to 192.168.3.108:5555: 由于目标计算机积极拒绝,无法连接。 (10061)

解决方案

D:\work_space\XXX>adb tcpip 5555
restarting in TCP mode port: 5555

D:\work_space\XXX>adb connect 192.168.3.108
connected to 192.168.3.108:5555

 

本文地址:https://blog.csdn.net/pimian13611397598/article/details/107928494