How to connect to a server running on my pc using my app on my android device -
i have written server-side program using java running on pc using pc server, , using client program had written using java able connect server program using "localhost" ip name , using port had specified in server-socket object in server-side program.
now have transformed client program android app , i'm running on phone, how can connect server program running on pc? need change socket defined in android app or work same way desktop app?
as desktop version works can use in android . notes keep in mind
- add permission in manifest
<uses-permission android:name="android.permission.internet" />
- do network operations in
background thread
usingasynctask
Comments
Post a Comment