0.0.0.0 is usually not a good idea for a variety of reasons (though more
recent versions of the java driver appear to handle rpc_address fine).
Listen address should be what the cluster needs to listen on, and
rpc_address should be the ip that you're to connect to.

On Sat, Jan 3, 2015 at 11:52 PM, Chamila Wijayarathna <
cdwijayarat...@gmail.com> wrote:

> Thanks Jonathan,
>
> It worked after setting both listen address and rpc_address to 0.0.0.0
>
> On Sun, Jan 4, 2015 at 7:58 AM, Jonathan Haddad <j...@jonhaddad.com> wrote:
>
>> This is most likely because your listen address is set to localhost.  Try
>> changing it to listen on the external interface.
>>
>>
>> On Sat Jan 03 2015 at 10:03:57 AM Chamila Wijayarathna <
>> cdwijayarat...@gmail.com> wrote:
>>
>>> Hello all,
>>>
>>> I have a cassandra node at a machine. When I access cqlsh from the same
>>> machne it works properly.
>>>
>>> But when I tried to connect to it's cqlsh using "192.x.x.x" from another
>>> machine, I'm getting an error saying
>>>
>>> Connection error: ('Unable to connect to any servers', {'192.x.x.x':
>>> error(111, "Tried connecting to [('192.x.x.x', 9042)]. Last error:
>>> Connection refused")})
>>>
>>> What is the reason for this? How can I fix it?
>>>
>>> Thank You!
>>> --
>>> *Chamila Dilshan Wijayarathna,*
>>> SMIEEE, SMIESL,
>>> Undergraduate,
>>> Department of Computer Science and Engineering,
>>> University of Moratuwa.
>>>
>>
>
>
> --
> *Chamila Dilshan Wijayarathna,*
> SMIEEE, SMIESL,
> Undergraduate,
> Department of Computer Science and Engineering,
> University of Moratuwa.
>



-- 

Thanks,
Ryan Svihla

Reply via email to