Failed to connect another host on different machine

126 views
Skip to first unread message

omid esmaili

unread,
Nov 27, 2019, 2:04:54 AM11/27/19
to rabbitmq-users
i'm using rabbitmq 3.8 and erlang 22.
i have to rabbitmq on different machine, i changed ../ etc/hosts file as below:

192.168.100.208 machine1.dev.srv
192.168.100.57 machine2.dev.srv

Now, i can't ping machine2 from machine1. 

i tried below command:
      rabbitmqctl ping -n rab...@machine2.dev.srv 
      rabbitmqctl ping -n machine2.dev.srv 
      rabbitmqctl ping -n rabbit@machine2

OUTPUT:

will ping rabbit@machine2. this only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
ERROR:
Failed to connect and authenticate to rabbit@machine2 in 60000 ms 

Thanks.
 


Wesley Peng

unread,
Nov 27, 2019, 2:07:36 AM11/27/19
to rabbitm...@googlegroups.com
Hi

on 2019/11/27 15:04, omid esmaili wrote:
>
> 192.168.100.208 machine1.dev.srv
> 192.168.100.57 machine2.dev.srv
>
> Now, i can't ping machine2 from machine1.


Both long hostname and short hostname should be put into hosts file.

The short one means "machine1" and "machine2" etc.

regards.
Reply all
Reply to author
Forward
0 new messages