im wondering if there are two programs, one called server and the other called client and these two are illustrating a server and client respectively,
server
client
You certainly can, just have the client and server connected to the same port number.