LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   RPC error (https://www.linuxquestions.org/questions/linux-server-73/rpc-error-501376/)

girish_hilage 11-14-2006 12:16 AM

RPC error
 
Hi,

I am writing some sample application(on RH9) to learn about how to use RPC protocol by reading from some document.
I have compiled the client and server.
I am executing server as a background process. But when I execute the client its giving the error: "RPC: Program not registered".
But, I have done changes to the file "hosts.allow" and also the function svc_register() called in the server is returning successfully (which means sever is successfully registering the procedure with the portmapper).

Can anybody please let me know if I am missing anything else?

Regards,
Girish

trickykid 11-14-2006 05:42 PM

Is portmapper running on both machines you're trying to connect?

girish_hilage 11-15-2006 02:01 AM

I am running server and client and the portmapper on the same machine.

girish_hilage 11-16-2006 06:47 AM

Its working now. I could not figure out what the problem was.
One more question is the command "rpcinfo -p" is not showing the name of my service in its output even though its showing program number, version, protocol, port. Can anybody pl. let me know how to view the service name as well?


All times are GMT -5. The time now is 01:35 PM.