Is it possible to use sockets (winsock2, not MFC) to communicate between two processes running on the same computer?

If so, could someone give me a very simple example (for example, "program1.exe" sending the message "Hello" to "program2.exe" and "program2.exe" receiving that message, where "program1.exe" and "program2.exe" are processes running on the same computer)?

Thank you in advance,
HighCommander4