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
sure, you can test them in the same machine,. years ago i made the chatting-like application using socket, and i tested it to the same machine before i did that with some different machine, and that was go fine,.