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

question in connect to vnc #24

Open
jaassoon opened this issue May 24, 2017 · 11 comments
Open

question in connect to vnc #24

jaassoon opened this issue May 24, 2017 · 11 comments

Comments

@jaassoon
Copy link

jaassoon commented May 24, 2017

when I try to connect android with VNC in port tcp/5900, I just connect to the mac itself, not the android in docker, why?

@jaassoon jaassoon changed the title cant connect to vnc need password question in connect to vnc May 24, 2017
@tracer0tong
Copy link
Owner

@jaassoon how are you running Docker in MacOS?
Probably in dedicated VM?

@jaassoon
Copy link
Author

now I even cant see the devices.
docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 278f63e28d8b tracer0tong/android-emulator "/entrypoint.sh" 19 hours ago Up About an hour 0.0.0.0:32777->22/tcp, 0.0.0.0:32776->5037/tcp, 0.0.0.0:32775->5554/tcp, 0.0.0.0:32774->5555/tcp, 0.0.0.0:32773->5900/tcp android
adb connect 0.0.0.0:32776
connected to 0.0.0.0:32776
adb devices
List of devices attached
nothing to show

@tracer0tong
Copy link
Owner

Could you make netstat -an | grep 32773 in shell? This is a port there are VNC should be attached. And also for 32777 (this is container ssh).

@jaassoon
Copy link
Author

netstat -an | grep 32773
tcp6 0 0 ::1.32773 *.* LISTEN tcp4 0 0 *.32773 *.* LISTEN
netstat -an | grep 32777
tcp6 0 0 ::1.32777 *.* LISTEN tcp4 0 0 *.32777 *.* LISTEN

@jaassoon
Copy link
Author

ok,It can connect to vnc. but
adb devices
still show nothing

@jaassoon
Copy link
Author

And it sounds like I cant do anything with mouse click

@jaassoon
Copy link
Author

I use chrome VNC plugin

@tracer0tong
Copy link
Owner

Two problems here: 1) VNC in Android QEMU is not fully functional. So, it doesn't support mouse clicks and many other features. One option, which was discussed in previous issues to use Monkey Runner to send commands and capture screenshots. 2) About ADB probably you have not connected to correct port. Should be 32774

@zoutepopcorn
Copy link

I was able to connect with
https://github.com/novnc/noVNC

For adb this worked for me:
'''
adb connect 172.17.0.2
'''

@baalarazor
Copy link

@zoutepopcorn - Can you help me, how to open emulator in the browser and which url should be given in appium driver?

@zoutepopcorn
Copy link

@baalalazor

I don't know what I was doing at that time 🧐
Just try to look at some noVnc installs..

I now use scrcpy, maybe also an option

https://github.com/Genymobile/scrcpy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants