What if I want to connect my Android mobile with my PC server so that my mobile can send my data (my current location) to my PC? The socket between my mobile Android and my PC (SERVER) doesn’t work. Any suggestions? It only works when using the android emulator.
Share
Step #1: Connect the phone to a local network via WiFi.
Step #2: Connect the PC to the same network.
Step #3: Write an app server on the PC that is listening on an IP address on that network (hint: not just
localhost).