in a window type ./test_requ connloc 2000 in another window type ./test_serv connloc2 3000 that's it ! now what you will type in one of the window will be displayed on the other after each carriage return