Ask Learn
Preview
Please sign in to use this experience.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
We often get questions on which ports need to be open or how do I know which IP address to white list in my firewall.
Here is a short summary and a few references which should clarify the topic for outbound ports:
First of all it depends on if you use the old or the new client or if you use the rest APIs. The AMQP protocol guide actually has good guidance in the below article, under the section "Connections and Sessions":
/en-us/azure/service-bus-messaging/service-bus-amqp-protocol-guide
Key points from above article:
To find the right IP addresses to white list for your connections you can for example do the following. Either copy the namespace URL from the connection string or typically you can just use YourNamespaceName.servicebus.windows.net and then open a command prompt and execute: nslookup YourNamespaceName.servicebus.windows.net. The IP address returned in "Non-authoritative answer" is what you are looking for.
Please note: This IP address is static. The only point in time it would change is if we e.g. would restore the namespace on to a different cluster which is not anything we would normally do without some severe incident happening.
Please sign in to use this experience.
Sign in