# Java Client Issue timeout

**URL:** <https://discuss.aerospike.com/t/java-client-issue-timeout/3511>\
**Category:** Java Client\
**Created:** [October 15, 2016, 4:31pm UTC](https://discuss.aerospike.com/t/java-client-issue-timeout/3511 "2016-10-15T16:31:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![abhishek\_mishra](https://avatars.discourse-cdn.com/v4/letter/a/a6a055/32.png) [@abhishek\_mishra](https://discuss.aerospike.com/u/abhishek_mishra)\
**Post date:** [October 15, 2016, 4:31pm UTC](https://discuss.aerospike.com/t/java-client-issue-timeout/3511/1 "2016-10-15T16:31:03Z")

</div>

Hi I am facing error using java client it taking more than a sec to connection to aerospike servers(write now we have 2 aws servers in cluster). While connecting to same servers from php-client it take microsecond to connect. are we missing something. AerospikeClient client = new AerospikeClient(host, port); initialisation of client is taking time. Please supervise us.

Regards, Abhishek

---

<div class="post-metadata">

**Author:** ![Brian](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/brian/32/2211_2.png) [@Brian](https://discuss.aerospike.com/u/Brian)\
**Post date:** [October 17, 2016, 5:10pm UTC](https://discuss.aerospike.com/t/java-client-issue-timeout/3511/2 "2016-10-17T17:10:13Z")

</div>

There is either a network error or the returned internal IP addresses of aws peers in the cluster are not accessible from your client machine.

Try:

asinfo -h -v services

and then ping the returned IP address from your client machine.
