Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot connect to Android Emulator #2

Open
akamud opened this issue Sep 11, 2017 · 3 comments
Open

Cannot connect to Android Emulator #2

akamud opened this issue Sep 11, 2017 · 3 comments
Assignees
Projects

Comments

@akamud
Copy link

akamud commented Sep 11, 2017

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?

@michaeled
Copy link
Owner

michaeled commented Sep 17, 2017

you'll probably need to setup a port redirect.

  1. open telnet
  2. connect to localhost 5554
  3. follow the onscreen directions for authentication
  4. type: redir add tcp:9099:9099
  5. open ui sleuth, click "Manual Connection."
  6. type localhost for the address
  7. ensure the port is 9099
  8. connect

alternatively, you could run the following command to replace steps 1 - 4.
adb forward tcp:9099 tcp:9099

@akamud
Copy link
Author

akamud commented Sep 19, 2017

We should add this to the wiki. It wasn't clear to me that emulators needed special instructions.

@michaeled michaeled added this to Documentation in v1.2 Sep 19, 2017
@michaeled
Copy link
Owner

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.

@michaeled michaeled self-assigned this Sep 20, 2017
@michaeled michaeled reopened this Sep 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
v1.2
Documentation
Development

No branches or pull requests

2 participants