Skip to content

BarisKilicGsu/terminal-socket-chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Chat Application with Socket

This project aims to implement a simple chat application with Python using sockets. It enables text-based communication between clients and the server.

Use

  • client.py: Client side code. Can connect to the server on another device and chat.
  • server.py: Main server side code. It allows clients to connect and communicate.

Dependencies

-Python 3.x

Setup

  1. Clone or download the project files to your computer.
  2. pip install -r requirements.txt
  3. Assign the IP and port information of the computer on which the server will run to the HOST_IP and HOST_PORT variables in the chat_server.py file.
  4. Run chat_server.py to start the server side.
  5. Enter the server information into the DEST_IP and DEST_PORT variables in chat_client.py
  6. Start chat_client.py to start the client side and connect to the server.
  7. Enter username on the client side and start chatting.

Note

  • The user must use the quit command to exit the conversation.
  • To send a message, write as follows:
    recipient_name > message

About

This project aims to implement a simple chat application with Python using sockets. It enables text-based communication between clients and the server.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages