original source is http://www.instructables.com/id/Creating-a-Chat-Server-Using-Java/
I tested that code, but that doesnot work. I rewrite many part of that.
You can use your own lisk.
I feel weird about class named ServerThread
is in client
package (also ClientThread
is in server
package).
I'm not native English speaker. Correct my English welcome.
Hello. I have compiled it with IntelliJ and I have successfully accepted from clients.
Here is in Server:
server starts port = 0.0.0.0/0.0.0.0:4444
accepts : /127.0.0.1:52503
Here is in Client:
Input username:
client1
But when im trying to send message, i tried to type in both client and server terminal, nothing happened. What should i do?
Here is in Server:
server starts port = 0.0.0.0/0.0.0.0:4444
accepts : /127.0.0.1:52503
hello
hi
wait?
client1
Here is in Client:
Input username:
client1
hello
send request
wahy