title: Erlang: rpc:call to remote node crashes with function_clause
body: <p>So I searched around a bit and found that I could use rpc:call/5 to ask a remote node if it got a process registered under a certain name and timeout if the node couldn't be reached, however whenever I try to call rpc:call/5 with the following params:</p>
  
  <pre><code>Pid = rpc:call(Node, erlang, whereis, [Name], 3000)
  </code></pre>
  
  <p>It just crashes and I can't figure out which of the param(s) are causing it. The following crash had the params: 'Node=name@0.0.0.0' and 'Name=server'</p>
  
  <pre><code>** Reason for termination ==
  ** "{{function_clause,[{gen,call,[{rex,\"name@0.0.0.0\"},'$gen_call',
  {call,erlang,whereis,[\"server\"],&lt;0.24.0&gt;},3000],
  [{file,\"gen.erl\"},{line,149}]},{gen_server,call,3,[{file,\"gen_server.erl\"},{line,186}]},
  {rpc,'-do_call/3-fun-0-',4,[{file,\"rpc.erl\"},{line,344}]}]},
  {gen_server,call,[{rex,\"name@0.0.0.0\"},
  {call,erlang,whereis,[\"server\"],&lt;0.24.0&gt;},3000]}}"
  12&gt; ** exception error: "{{function_clause,[{gen,call,\n
  [{rex,\"name@0.0.0.0\"},'$gen_call',{call,erlang,whereis,[\"server\"],&lt;0.24.0&gt;},3000],
  [{file,\"gen.erl\"},{line,149}]},
  {gen_server,call,3,[{file,\"gen_server.erl\"},{line,186}]},
  {rpc,'-do_call/3-fun-0-',4,[{file,\"rpc.erl\"},{line,344}]}]},\n {gen_server,call,
  [{rex,\"name@0.0.0.0\"},{call,erlang,whereis,[\"server\"],&lt;0.24.0&gt;},3000]}}"
  </code></pre>
  
  <p>The node 'name@0.0.0.0' doesn't exist but if that was the problem shouldn't it return with a timeout after 3 seconds?</p>