Skip to content

lenmorld/Simple-Client-Server-Messenger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Simple Client-Server Chat Room in Java

SERVER

  • Server is created using ServerSocket(port #, max num of users)
  • Server waits for someone to connect by listening at given port
  • When a client connects using complete socket (IP address and port), socketConnection is created through server.accept() method
  • Data can now be transmitted using streams
  • Uses a thread that updates the GUI when a message is sent
  • Server can now send message to client

CLIENT

  • Authenticate users through a Log-in form, connects to a remote MySQL server using JDBC
  • MySQL database with a table of Users
  • Client is created using Socket(IP address of Server, port #)
  • Client connects to server
  • Uses a thread that updates the GUI when a message is sent
  • User can now send message to server

NOTE

  • Messages can be send by hitting ENTER
  • Client or server can disconnect by typing END

TODO

  • Include a DISCONNECT button, both for client and server
  • Improve GUI
  • Multiple clients can connect to server

SERVER - UBUNTU

  • client chat

SERVER - UBUNTU

  • client chat

CLIENT LOGIN - UBUNTU

  • client login

CLIENT CHAT - UBUNTU

  • client chat

About

Simple Client-Server Messenger using Java Sockets and JDBC for user-login, MySQL for user database

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages