1

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 ?

Shirishkumar Bari
  • 2,692
  • 1
  • 28
  • 36

1 Answers1

2

It is a permission problem using guest guest

Please read this Can't access RabbitMQ web management interface after fresh install

Community
  • 1
  • 1
Gabriele Santomaggio
  • 21,656
  • 4
  • 52
  • 52