title: RPC port Map Failure Mac OSX 10.6
body: <p>I m trying to run a Program using RPC of Adding two numbers on Mac OsX 10.6</p>
  
  <p>Here is what i am doing:</p>
  
  <blockquote>
    <p>rpcgen -a -C add.x</p>
  </blockquote>
  
  <p>It generates the files </p>
  
  <blockquote>
    <p>add.h,add_clnt.c,add_svc.c,add_server.c,add_client.c</p>
  </blockquote>
  
  <p>Then Compile all the files using:</p>
  
  <pre><code>gcc -g -DRPC_SVC_FG -c -o add_clnt.o add_clnt.c
  gcc -g -DRPC_SVC_FG -c -o add_client.o add_client.c
  gcc -g -DRPC_SVC_FG -c -o add_xdr.o add_xdr.c
  gcc -g -DRPC_SVC_FG -o add_client add_clnt.o add_client.o add_xdr.o 
  gcc -g -DRPC_SVC_FG -c -o add_svc.o add_svc.c
  gcc -g -DRPC_SVC_FG -c -o add_server.o add_server.c
  gcc -g -DRPC_SVC_FG -o add_server add_svc.o add_server.o add_xdr.o
  </code></pre>
  
  <p>Run server in one remote console</p>
  
  <pre><code>./add_server
  </code></pre>
  
  <p>Run client in another console</p>
  
  <pre><code>./add_client localhost 23 35
  </code></pre>
  
  <p>23 and 35 are the number whose sum i want to be printed on the second console.
  When i execute the following nothing appears on the server console.</p>
  
  <p>If i try an ip address instead of localhost while running client
  The error is:</p>
  
  <pre><code>RPC:Port mapper Failure
  </code></pre>
  
  <p>I am using MacOSX 10.6</p>