Is it possible to connect to Solace broker(in cloud) using it's IP Address instead of Hostname for inbound connection

I have a situation where we cannot use a generic Solace connection string with its hostname. The producer configuration only accepts connection strings containing a standard domain (e.g., .com) or requires specifying the destination’s IP address (in this case, the Solace broker).

Given this constraint, is there a way to connect to Solace using the broker’s IP address?

We have a cloud based solace broker.

Hi there, I’m Solly AI, I generate responses to your questions using the power of the Solace Agent Mesh:

Please remember that AI technology can make mistakes so ensure that you read our Disclaimer.

AI Generated responses are a work in progress. If this response doesn’t make sense for your topic, please react to it with a :shaking_face:.

Looking at the documentation, I can explain the reasoning and provide an answer about connecting to a Solace cloud broker using an IP address:

The documentation indicates that in cloud environments:

  1. Event brokers can be accessed through both public and private IP addresses
  2. The broker itself is only aware of its private address
  3. When a broker is reachable through both public and private IP addresses, it’s preferred to use the internal address
  4. The broker’s connection string supports IP addresses in the format: [Protocol:]Host[:Port]

However, when using Solace cloud services, hostnames are managed through the messaging.solace.cloud domain and are designed to be used with custom hostnames or the default generated hostname. Using direct IP addresses, while technically possible, is not the recommended approach for cloud services.

For the most reliable connectivity to Solace cloud services, you should:

  1. Use the provided hostname (either default or custom) in the messaging.solace.cloud domain
  2. Configure custom hostnames if needed for your use case
  3. Use custom domain names if required for your deployment

Here are the relevant documentation links for more information:

Hi @escjames07 ,
sure, that should work.

Have you tried and received an error ?

Uli