title: Unable to run RPC programs using rpcgen
body: <p>I have just started learning about RPC and the rpcgen compiler. I am using the FreeBSD OS and trying to implement a simple program that prints "Hello World" to the console using RPC. 
  I first created the '.x' file and using rpcgen, obtained the client and server stubs. Also, I am using both server and client code on the same machine for now. The whole code compiles fine but when I run the program like this: "./firsttry localhost", it outputs the following error: "RPC: Program not registered". What am I doing wrong here? Could it be a problem with the code or is my implementation incorrect? </p>