开发者

How to connect android application to PC in the access point network

开发者 https://www.devze.com 2023-03-24 09:13 出处:网络
How to connect android application to PC in the access point netwo开发者_如何学JAVArk programmatically via IP address.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号