Greeting Client is a client program that connects to a server by using a socket and sends a greeting, and then waits for a response. Greeting Server program is an example of a server application that uses the Socket class to listen for clients on a port number specified by a command-line argument.