Updated on 2022-08-15 GMT+08:00

Viewing Client Connection Addresses

View client connection addresses on the RabbitMQ management UI.

A client's connection addresses can be viewed only when the client is connected to a RabbitMQ instance.

Procedure

  1. Log in to the RabbitMQ management UI.
  2. In the navigation pane, choose Connections.
  3. View client connection addresses, as shown in Figure 1.

    Figure 1 Client connection addresses

    A client can function as a producer to create messages and as a consumer to retrieve messages. The producer and consumer IP addresses are the same, as shown in Figure 1, and are difficult to distinguish. To differentiate between producer and consumer IP addresses, you can set the clientProperties parameter on the client. The following is an example:

    // Configure client connection parameters.
    HashMap<String, Object> clientProperties = new HashMap<>();
    clientProperties.put("connection_name", "producer");
    connectionFactory.setClientProperties(clientProperties);
    
    // Create a connection.
    Connection connection = connectionFactory.newConnection();

    After the clientProperties parameter is set, the connection addresses are displayed as shown in Figure 2.

    Figure 2 Client connection addresses (with producer/consumer differentiated)