title: AEROSPIKE_ERR_CONNECTION Bad file descriptor, 127.0.0.1:3000; Not able to connect to local node from aql
body: <p>I have installed aerospike on my mac my following this <a href="https://www.aerospike.com/docs/operations/install/vagrant/mac" rel="nofollow noreferrer">installation steps</a></p>
  
  <p>All the validations are working fine. I am able to connect to the cluster using browser chrome. Below is the screen shot.</p>
  
  <p>I have also installed the AQL tools following the instructions <a href="https://www.aerospike.com/docs/operations/install/tools/mac/index.html" rel="nofollow noreferrer">here</a>.</p>
  
  <p><a href="https://i.stack.imgur.com/BXZdW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BXZdW.png" alt="single node aerospike cluster"></a></p>
  
  <p>But I'm unable to connect to local node from aql.</p>
  
  <pre><code>$ aql
  2017-11-21 16:06:09 WARN Failed to connect to seed 127.0.0.1 3000. 
  AEROSPIKE_ERR_CONNECTION Bad file descriptor, 127.0.0.1:3000
  Error -1: Failed to connect
  
  $ asadm
  Aerospike Interactive Shell, version 0.1.11
  ERROR: Not able to connect any cluster.
  </code></pre>
  
  <p>Also, I have noticed the Java client is giving error.</p>
  
  <pre><code>AerospikeClient client = new AerospikeClient("localhost", 3000);
  </code></pre>
  
  <p>when I changed the localhost to actual Ip returned by <code>vagrant ssh -c "ip addr"|grep 'global eth1'</code> it is working fine.</p>
  
  <p>How to connect with aql using customer parameters? I want to pass ip address and port as parameters to aql. Any suggestions.</p>