The Terminal window to quit the nc commands once you're done Outbound packets back the other way: cd /tmpĪs long as the nc commands stay running in a Terminal window, the Interface ( 127.0.0.1 5555 in this example), and to forward the To forward inbound TCP packets received externally on port 5555 (orĪny other port you like) to the odd-numbered port on the loopback The odd-numbered port is the one used to connect to adb.
Network interface: lsof -iTCP -sTCP:LISTEN -P | grep 'emulator\|qemu'Įmulator6 94105 macuser 20u IPv4 0xa8dacfb1d4a1b51f 0t0 TCP localhost:5555 (LISTEN)Įmulator6 94105 macuser 21u IPv4 0xa8dacfb1d845a51f 0t0 TCP localhost:5554 (LISTEN) Note that the emulator is listening on 2 TCP ports on the loopback Kill the adb server on the Mac: adb kill-server We recommend using an Android Emulator that does not include the Google Play Store.