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

**URL:** <https://community.solace.com/t/is-it-possible-to-connect-to-solace-broker-in-cloud-using-its-ip-address-instead-of-hostname-for-inbound-connection/4050>\
**Category:** General Discussions\
**Tags:** solace-cloud\
**Created:** [March 24, 2025, 11:06am UTC](https://community.solace.com/t/is-it-possible-to-connect-to-solace-broker-in-cloud-using-its-ip-address-instead-of-hostname-for-inbound-connection/4050 "2025-03-24T11:06:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![escjames07](https://yyz1.discourse-cdn.com/solace/user_avatar/community.solace.com/escjames07/32/2238_2.png) [@escjames07](https://community.solace.com/u/escjames07)\
**Post date:** [March 24, 2025, 11:06am UTC](https://community.solace.com/t/is-it-possible-to-connect-to-solace-broker-in-cloud-using-its-ip-address-instead-of-hostname-for-inbound-connection/4050/1 "2025-03-24T11:06:23Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Solly-AI](https://yyz1.discourse-cdn.com/solace/user_avatar/community.solace.com/solly-ai/32/2305_2.png) [@Solly-AI](https://community.solace.com/u/Solly-AI)\
**Post date:** [March 24, 2025, 11:07am UTC](https://community.solace.com/t/is-it-possible-to-connect-to-solace-broker-in-cloud-using-its-ip-address-instead-of-hostname-for-inbound-connection/4050/2 "2025-03-24T11:07:03Z")

</div>

**Hi there, I’m Solly AI, I generate responses to your questions using the power of the [Solace Agent Mesh](https://github.com/SolaceLabs/solace-agent-mesh)**:

**Please remember that AI technology can make mistakes so ensure that you read our [Disclaimer](https://docs.solace.com/docs-ai-disclaimer.htm).**

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

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:

- [Session Properties Required to Establish a Connection](https://docs.solace.com/API/API-Developer-Guide/Session-Props-Required.htm)
- [Configuring Custom Hostnames for an Event Broker Service](https://docs.solace.com/Cloud/configure-hostnames.htm)
- [IP Addressing in Cloud Instances](https://docs.solace.com/Admin/IP-Interfaces/IP-Addressing-in-Cloud-Instances.htm)

---

<div class="post-metadata">

**Author:** ![uherbst](https://yyz1.discourse-cdn.com/solace/user_avatar/community.solace.com/uherbst/32/291_2.png) [@uherbst](https://community.solace.com/u/uherbst)\
**Post date:** [March 24, 2025, 11:56am UTC](https://community.solace.com/t/is-it-possible-to-connect-to-solace-broker-in-cloud-using-its-ip-address-instead-of-hostname-for-inbound-connection/4050/3 "2025-03-24T11:56:41Z")

</div>

Hi @escjames07 ,  
sure, that should work.

Have you tried and received an error ?

Uli
