Skip to content

This project demonstrates a simple client-server communication setup using Android apps. The client and server are implemented as separate screens within the same app using Jetpack Compose. The client connects to the server over a TCP socket and allows real-time text communication.

Notifications You must be signed in to change notification settings

thefaisalurrehman/Simple-Server-Client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Client-Server Communication App

This project demonstrates a simple client-server communication setup using Android apps. The client and server are implemented as separate screens within the same app using Jetpack Compose. The client connects to the server over a TCP socket and allows real-time text communication.

Features

  • Client Screen: Connects to the server and sends/receives messages.
  • Server Screen: Listens for incoming connections and exchanges messages with the client.

Prerequisites

  • Android Studio
  • A physical or virtual Android device
  • Both devices should be on the same network

Update the IP Address

  • In the ClientScreen composable, update the IP address in the Socket constructor to match the IP address of the server device.
  • val socket = Socket("YOUR_SERVER_IP_ADDRESS", 12345)

About

This project demonstrates a simple client-server communication setup using Android apps. The client and server are implemented as separate screens within the same app using Jetpack Compose. The client connects to the server over a TCP socket and allows real-time text communication.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages