How to connect android application to PC in the access point network
How to connect android application to PC in the access point netwo开发者_如何学JAVArk programmatically via IP address. In other word, I need code to establish connection between my application and Pc, this Pc is in wifi network.
To access your pc from the Android emulator, see this link (its 10.0.2.2). If you are using a real phone on your home network, then simply get the local IP address of your PC by opening a command prompt, and typing ipconfig /all. Then you can access it via Android. Note: this is assuming you have some open socket on your PC waiting for connections.
精彩评论