P2PChatApp is a peer-to-peer chat application for Android that allows users to send messages over the same Wi-Fi network using TCP/IP socket programming. The app is developed in Kotlin and uses Jetpack Compose for the user interface.
- Send and receive messages over the same Wi-Fi network.
- Ping functionality to check connectivity between devices.
- Simple and intuitive user interface built with Jetpack Compose.
- Android Studio (latest version)
- An Android device
- Wi-Fi network for peer-to-peer communication
- Clone the repository:
To use P2PChatApp with two devices or emulators:
-
Open two instances of the project:
- Open Android Studio and load the P2PChatApp project in two separate windows or instances.
-
Run the app on each device or emulator:
- Start one instance on Device A or Emulator A.
- Start the second instance on Device B or Emulator B.
-
Configure devices for peer-to-peer communication:
- On Device A (acting as server), note its IP address from the Wi-Fi settings.
- On Device B (acting as client), enter the IP address of Device A in the app's UI.
-
Send messages:
- Use the
Send
button on Device B to send messages to Device A. - Check connectivity with the
Ping
button.
- Use the
-
Monitor messages received:
- Messages sent from Device B should be displayed in the chat log on Device A.
Ensure both devices or emulators are connected to the same Wi-Fi network for proper functionality.
This application was developed by Group 12 (LVINSP).