#2644·scrcpy

Can't connect to remote emulator on macOS

Author: sbenedettoCreated Sep 19, 2021Updated Sep 24, 2026
  • [x ] I have read the FAQ.
  • [ x] I have searched in existing issues.

Environment

  • OS: macOS big sur
  • scrcpy version: 1.19
  • installation method: brew install scrappy
  • device model: emulator
  • Android version: 9

Describe the bug

I'm trying to connect with scrcpy to an emulator on a remote server. I looked through the bugs, found #242 and #144 and follow some of the suggestions.

On my Mac

adb kill-server
ssh -CN -L5037:localhost:5037 -R27183:localhost:27183 <myserver>

on another terminal on my mac

adb devices

This works fine, I can see the emulator running on my server.

Also running on my mac netcat -l -p 27183 and netcat localhost 27183 on my server and I can see what I type in either side.

However when I run scrcpy with verbose output on my macos I get

2021-09-19 21:29:58.347 scrcpy[85150:707705] INFO: scrcpy 1.18 <https://github.com/Genymobile/scrcpy>
2021-09-19 21:29:58.347 scrcpy[85150:707705] DEBUG: Using server: /usr/local/Cellar/scrcpy/1.18/share/scrcpy/scrcpy-server
/usr/local/Cellar/scrcpy/1.18/share/scrcpy/scrcpy-server: 1 file pushed. 0.1 MB/s (37330 bytes in 0.241s)
2021-09-19 21:30:01.060 scrcpy[85150:707705] DEBUG: Screensaver enabled
[server] INFO: Device: unknown emulator_name (Android 9)
[server] DEBUG: Using encoder: 'OMX.google.h264.encoder'
[server] DEBUG: Screen streaming stopped
[server] DEBUG: Device message sender stopped
[server] DEBUG: Controller stopped
2021-09-19 21:30:04.229 scrcpy[85150:707858] DEBUG: Server terminated
2021-09-19 21:30:05.191 scrcpy[85150:707705] WARN: Killing the server...

what can I try to find out the problem?

By the way, what is port 27183 exactly for? Thanks a lot for any help.