Skip to content

ohEmily/python_chatroom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 

Repository files navigation

Client-Server Messaging App (Python)

An exercise in socket programming and multithreading in Python.

A simple app that creates a chat room for users. Users can log in and out, send private messages, broadcast messages to the whole room, check who else is online, and check who was logged in over the past 60 minutes. User authentication reads from a pre-defined text file containing username and password combinations and allows or disallows a login -- after 3 failed logins on the same IP on the same username, that username is blocked from that IP for 60 seconds (BLOCK_TIME). Users will be logged out after 30 min (TIME_OUT) of inactivity.

How to run

Server:

python Server.py <server_port_no>

Client(s):

python Client.py <server_IP_address> <server_port_no>

About

A TCP client-server app written in Python.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages