Skip to content

MrVipinVijayan/android-client-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

android-client-server

Describes a simple Android Client Server Application

How to Run?

The repo contains two android projects. One is Server Application and the other is Client.
Run both applications on your devices.
For running locally, Find the IP of the device which is running the Server Application.
Change the SERVER_IP in the Client Application inside ClientActivity.

public static final String SERVER_IP = "192.168.1.155";

Make sure both devices are on the same network and are using the same PORT.
Go to the Client Application and tap "Connect Server"
It should show connected and now tap "Send Message to Server".

Open Server Application to see the message from Client.

If you are connecting to a Server, make sure the PORT you specified in the code is allowed to accept incoming socket connections.
Specify custom messages by entering the message in the TextField on both Applications.

Video Tutorial:

https://www.youtube.com/watch?v=xIWnFQ68Fco&ab_channel=MobileProgrammer

Written Article:

https://www.coderzheaven.com/2017/05/01/client-server-programming-in-android-send-message-to-the-client-and-back/

Server


drawing

Client


drawing

About

Describes Android Client Server Application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published