1

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-websockets Commented Mar 10, 2017 at 6:32
  • do you want to involve some centralised server or you want devices should behave as server and client ? Commented Mar 10, 2017 at 6:40
  • I just need chat between two devices over same wifi network.Is it possible to do without centralised server Commented Mar 10, 2017 at 7:04

1 Answer 1

2

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.