Connecting to remote aerospike server - Community edition

I am a beginner with aerospike with Python client. I have an aerospike [build -] installed in a google instance. How can I connect to the server from another instance?

I tried the following in shell and wouldn't budge:

import aerospike
config = {'hosts': [('xx.mmm.nn.oo', 3000)]}
# the IP from ifconfig | grep "inet addr"
client = aerospike.client(config)

This yields exception as below:

ClientError: (-1L, 'Failed to connect', 'src/main/aerospike/as_cluster.c', 459)

In the remote I tried the following:

This works fine:

asinfo -v "namespaces"

Also this works when I do:

telnet xx.mmm.nn.oo 3003

Going desperate, I have tried setting access-address in the local with the IP of the server [xx.mmm.nn.oo] and that didn't work either!

Please help folks!


Issue apparently resolved by allowing connections by editing the iptables:

/sbin/iptables -A INPUT -p tcp -s XXX.XXX.XXX.XXX -j ACCEPT /sbin/iptables -A OUTPUT -p tcp -d XXX.XXX.XXX.XXX -j ACCEPT –

Need Your Help

VS 2013 - Custom Control template gone?

wpf templates custom-controls

How are you supposed to create a new Custom Control with VS 2013? the template seems to have gone. I'm guessing that we're now expected to do this through Blend?