Could Not Connect To Tcp:5037: Cannot Connect To 127.0.0.1:5037: No Connection Could Be Made Because The Target Machine Actively Refused It. (10061)
Solution 1:
make sure you have installing your device driver and adb
service
and is activated USB debugging in android device -> setting -> developer options
and must be could to see your device when you connected by USB port ( by this command : adb devices
)
so when you connected by USB follow this Commands :
1-stay connect via USB
2-connect to your WIFI network (computer and mobile device both)
3-ping DeviceIP
(must be have ping to your device)
4- adb kill-server
5-adb usb
6-adb tcpip 5556
7-adb connect "yourDeviceIP:5556"
8-adb devices
(must be see two device names , one of them is by deviceIP:5556)
9-unplug USB cable
then it's Done! and you could to test your app
Solution 2:
Check this answer which helped me. The issue might be with the latest unstable version of platform-tools.
adb cannot connect to daemon at tcp:5037
Solution 3:
In my computer, it is releated to Hyper-V, I have to completely disabled it. Then the ports like 5037,5055,8080 and so on are avaliable.
See more on https://petri.com/how-to-disable-hyper-v-completely-in-windows-10, https://www.poweronplatforms.com/enable-disable-hyper-v-windows-10-8/.
DO NOT FORGET bcdedit /set hypervisorlaunchtype off
!!!
Solution 4:
I had faced the same issue and it was because of the antivirus that was not not allowing to connect with my device. So, I deleted the adb.exe from platform-tools and pasted it again. [Please store the adb.exe before deleting]
After doing this, I got a pop-up from my antivirus software asking if it can allow devices to connect. On clicking OK, I got the authentication key from the device. On checking it, I was able to connect successfully.
Solution 5:
Connect your android mobile through USB then try the following command
adb devices or adb.exe devices
ans:- daemon not running; starting now at tcp:5037 daemon started successfully List of devices attached [Device ID] Device
Post a Comment for "Could Not Connect To Tcp:5037: Cannot Connect To 127.0.0.1:5037: No Connection Could Be Made Because The Target Machine Actively Refused It. (10061)"