home -> academy -> Other Java
On this page > Buckys tutorial on...

Buckys tutorial on TCP sockets programming

Youtube video tutorial source-code copied and it is working:
File TCPIPsocketsProgramming.png

The server is running on localhost 127.0.0.1 and listens on 6789 port.

Further, these two/2 small apps could be parametrized and prepared with JWS java web start.
As result, you will be able to:
1- run the server on your computer /smartphone;
2- give your IP to a friend. Give also a link to the Client java app (JWS);
3- your friend clicks on the link and the Client app is installed and running;
4- you both start chatting.

Also, the used port should be allowed in your firewall /antivirus protection.

The source-code is available in home>Downloads section.