Saved searches

Use saved searches to filter your results more quickly

Cancel Create saved search Sign up Reseting focus

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

Describes Android Client Server Application

Notifications You must be signed in to change notification settings

MrVipinVijayan/android-client-server

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Go to file

Folders and files

Last commit message Last commit date

Latest commit

History

View all files

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.