Is it possible to do a chat between client and server (two android devices) using socket programming in android?If possible,anybody please offer me a help.Even a link is acceptable.
3
-
it is possible and its easy with okhttp websocket check out this example github.com/pushpendra-spartan/android-websocketsPushpendra– Pushpendra2017-03-10 06:32:23 +00:00Commented Mar 10, 2017 at 6:32
-
do you want to involve some centralised server or you want devices should behave as server and client ?user642700– user6427002017-03-10 06:40:22 +00:00Commented Mar 10, 2017 at 6:40
-
I just need chat between two devices over same wifi network.Is it possible to do without centralised serverAparna– Aparna2017-03-10 07:04:21 +00:00Commented Mar 10, 2017 at 7:04
Add a comment
|
1 Answer
It is possible. you can use socket programming and create chat application with 2+ devices. one device must act as server and others have to be client. if your want to your server to be android device and don't want have web server side it does not need an internet connection. just a access point or one mobile hotsopt is enough. but all device must be connect to same hotspot or access point.