Same problem. Monodevelopment editor, “Run”-> “Attach to Process” only get Unity Editor. Development Build and Script Debugging checked. Turned off firewall on PC and router. I was able to debug in Android a few weeks ago with the same router setting and Android phone. So the router multicast is working.
I’m running:
Windows 8.1
Unity 64bit, 5.1.1f1 (just downloaded a fresh copy)
Android Debug Bridge version 1.0.32 (Android SDK from about 3 to 4 weeks ago. Don’t remember the version I used this version to debug to Android before)
Android Developer options: Stay awake and USB debugging. also tried “Select debug app” to the Unity app.
adb devices is showing 192.168h.2.8:5555 (IP of Android phone )
I can build and download to the Android device over TCP/IP
adb logcat is working. I get full logcat verbose on the Windows dev system.
Am I missing something? I’ve been working on this for hours. Tried all kinds of stuff. Plugged in to USB, unplugged. reboot, download new Unity build. checked router settings, etc.
I’ve also tied Revoking USB debugging authorizations. I then plugged the USB in and granted authorization. Kill adb server and started over with adb. adb tcpip 5555, adb connect 192.168.2.8, When this connection is made Android again asks for authorization for this connection. I granted it. Logcat works, “Attach to Process” does not.
I notice when I use: “adb tcpip 5555” this is the output:
Z:\AndroidSDK\sdk\platform-tools>adb tcpip 5555
- daemon not running. starting it now on port 5037 *
- daemon started successfully *
error: device not found
Z:\AndroidSDK\sdk\platform-tools>adb connect 192.168.2.8
connected to 192.168.2.8:5555
Notice port 5037. I assume this is daemon port on my Windows system. Port 5555 is on the Android.
So I try:
Z:\AndroidSDK\sdk\platform-tools>adb tcpip 5037
- daemon not running. starting it now on port 5037 *
- daemon started successfully *
error: device not found
Z:\AndroidSDK\sdk\platform-tools>adb connect 192.168.2.8
connected to 192.168.2.8:5555
The Android phone still connects to 5555. I disconnect: adb disconnect 192.168.2.8 and try:
Z:\AndroidSDK\sdk\platform-tools>adb connect 192.168.2.8:5037
unable to connect to 192.168.2.8:5037:5037
but this works:
Z:\AndroidSDK\sdk\platform-tools>adb connect 192.168.2.8:5555
connected to 192.168.2.8:5555
Does anyone know what the 5037 port is? Do I have to connect the Android phone to port 5037? If I do then how do I connect to another port then 5555?
Please can Unity give us more then “Attach to Process” and it will magically show up. Is there a command line to try? Any setting in Unity to test or show adb process? How does the “Attach to Process” work? does it establish process connections when the editor first runs or does it continually try to establish connections? Is there any adb commands to test? The Windows dev system is talking to logcat just fine.
Don’t know what else to do. Keep coding and hope “Attach to Process” magic will just start to work again. Bummer.