Nowadays , all aplications are connected with their self cloud services and you can interact easily with other people. You will be able to create a server-client application in Java for your future projects.
The idea is two create 3 projects in Java. One for the Client, other for the Server and finally one share project for the message, server IP and port.
The server side will have a server socket and a thread to listen for the connections. The client instead will create that connections to the server IP in a specified port.
With this structure you can do almost everything. Send messages, objects…
For example, in the tutorial series you will learn how to create a CHAT SYSTEM
The tutorial series is available here:
The github repository: Server-Client repository2