I have developed a small program to connect to rabbitMQ server. I have used all the default settings.
Method
public Connection getConnection(String host) throws IOException, TimeoutException {
ConnectionFactory factory = new ConnectionFactory();
factory.setHost(host);
return factory.newConnection();
}
When I pass String localhost
to this method it return me a valid connection
but when I pass my machine's IP Address xxxx.xxxx.xxx.xx
then it gives me below error
com.rabbitmq.client.AuthenticationFailureException: ACCESS_REFUSED - Login was refused using authentication mechanism PLAIN. For details see the broker logfile.
I need to pass the IP Address to be able to access it from other machine.
Can anybody provide some pointers on this ?