be sure portmap is installed (sudo apt-get install portmap)
run rpcgen server.x from command line
modify server_server.c and server_client.c suitably
compile and launch server in a shell (make -F Makefile.server server_server and then ./server_server)
run the client (make -F Makefile.server server_client and then ./sever_client)