Authentication during socket programming

I am trying the networking feature of Root. To establish the connection between client and server authentication is required and Root tutorials had Authserv and Authclient programs for it… while runing these programs I am getting errors like
1.route to host not found (however if we ping the client it responds)
2. rootdaemonrc not present.
3. rootdpass not found.
4. invalid user name.
Plz help…