<Connecting to a TCP socket on the android emulato...
# stackoverflow
r
Connecting to a TCP socket on the android emulator from another device on the same LAN I'm developing an android app in kotlin where I have two instances of the app: In the android emulator of android studio on my PC (win11) On my actual phone Both devices are on the same LAN. I make the app open a TCP socket on port 2001 on the emulator, and I try to connect to that socket from the app on my phone using 192.168.18.16:2001 where 192.168.18.16 is my PC's local IP I've set up port forwarding from my PC to the emulator via abd using: abd -s emulator-5554 forward tcp:2001...