Examples of how to build TCP Sockets connections in Java language.
This project's goal is to build a simple chat application using TCP Sockets Connections in several languages (Java, Python and C++). It is necessary to have two computers in the same network, or a virtual machine configured. One computer will play the server side and the other plays the client side.
Note: It is important to run server first, and then run the client. Otherwise, client will never be able to make a connection.
Prerequisites
To run this project, you'll need to have Java installed.
Installing
Cloning the Repository
$ git clone https://github.com/awcasella/TCP-Sockets-Connection.git
$ cd TCP-Sockets-Connection
Installing Java
- ORACLE Java installation tutorial can be found here.
Running with Java (on server side):
$ cd Java
$ javac TCPServer.java
$ java TCPServer
Running with Java (on client side):
$ cd Java
$ javac TCPClient.java
$ java TCPClient
