ththanhbui / chat-client-server

A simple Java chat client and server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A simple Java chat client and server

A single server to support many clients.

To run the server, compile and run the file ChatServer in package server with a port number:

javac -d ./out server/ChatServer.java, cd out; java server.ChatServer 1234

To connect to the server from the client side, on another terminal, compile and run the file ChatClient in package client with localhost and 1234 as the hostname and portnumber:

javac -d ./out client/ChatClient.java, cd out; java client.ChatClient localhost 1234

Currently working on popping up a proper GUIClient that has proper interface to type in text, "Send" button, etc.

Enjoy!

About

A simple Java chat client and server


Languages

Language:Java 100.0%