JavaFX apllication with two modules: client and server, which communicate using Sockets over TCP/IP network.
TCP/IP is connection-oriented, meaning an exclusive connection must first be established between the Client and Server for communication to take place.
There is ServerSocket on Server side that waits for connection request from Client.
And Socket on Client Side that sends connection request.
When connection is established, both sides can communicate over specified port in application.properties
file.
- Clone/extract from archive this repo on your PC.
- Change in both projects
src/main/resources/application.properties
files with your custom data (if you wish).
Hint 1: To run application correctly don't changeclient.host
property insrc/main/resources/application.properties
Hint 2: Propertyserver.port
in server app andclient.port
in client app must be the same. - Run Server firstly and Client then.