uisleuth
uisleuth copied to clipboard
Cannot connect to Android Emulator
I am using a Google Android Emulator (x64) and I'm trying to connect but I always get:
"Error Code 1006: The connection was forcefully closed. The other party is not responding."
I kept the UISleuth.Inspector.ShowAcceptingConnections();
instruction, and I see an alert showing "Listening on ws://10.0.2.15:9099/", but even trying manual connection, it doesn't work.
Are there any log files I could look at?
you'll probably need to setup a port redirect.
- open telnet
- connect to localhost 5554
- follow the onscreen directions for authentication
- type: redir add tcp:9099:9099
- open ui sleuth, click "Manual Connection."
- type localhost for the address
- ensure the port is 9099
- connect
alternatively, you could run the following command to replace steps 1 - 4. adb forward tcp:9099 tcp:9099
We should add this to the wiki. It wasn't clear to me that emulators needed special instructions.
Sure. I can do this. It's also something that can be done programmatically at runtime. So, I'll keep this open. The google android emulators don't allow the host OS to communicate with the guest OS by default. This is a QEMU default.