Managing Azure Service Bus When TCP Port 5671 Is Blocked - Cerebrata (2024)

Problem

Azure Service Bus always requires the use of TLS (Transport Layer Security). It supports connections over TCP port 5671. It requires the port 5671(default port used by AMQP) to be enabled in the network of the sender or receiver local system. Connection to Azure Service Bus will fail if this port is disabled.

Solution (AMQP Over WebSocket)

The AMQP WebSocket Binding defines a mechanism for tunnelling an AMQP connection over a WebSocket transport. Web Sockets binding creates a tunnel over TCP port 443 that is then equivalent to AMQP 5671 connections. This makes the alternative way or method to transport the messages to the service bus queues and topics.

If the TCP port 5671 (default port used by AMQP) is blocked in the client’s firewall network, then the client cannot receive/peek the sent messages from any of the connected service bus account topics and subscriptions. So we could use AMQP over WebSocket option which could act as an equivalent AMQP connection to peek the messages from the connected service bus queues and topics.

How do we do it in Cerebrata

Cerebrata supports both “AMQP” and “AMQP Over WebSocket” for connecting to Azure Service Bus. By default it uses AMQP. In case port 5671 is blocked, you can easily switch to “AMQP Over WebSocket”. To enable the option in Cerebrata you should navigate to Top Main Menu > Help > Settings > Service Bus Settings > General Settings > Check the Use AMQP over WebSocket checkbox and click Save.

Managing Azure Service Bus When TCP Port 5671 Is Blocked - Cerebrata (1)

Conclusion

In this blog post we saw how Cerebrata can be used in communicating the messages between two different containers to various nodes through AMQP over websocket.

Cerebrataalso enables you to manage your Azure Cosmos DB accounts (SQL API Table API), Service Bus Namespaces, Cognitive Search Service accounts, Redis Cache accounts, and much more. It is also cross-platform so that you can manage your Azure resources from a platform of your choice – Windows, Mac, or Linux.

Please visithttps://www.cerebrata.comto learn more.

Managing Azure Service Bus When TCP Port 5671 Is Blocked - Cerebrata (2024)

FAQs

Managing Azure Service Bus When TCP Port 5671 Is Blocked - Cerebrata? ›

In case port 5671 is blocked, you can easily switch to “AMQP Over WebSocket”. To enable the option in Cerebrata you should navigate to Top Main Menu > Help > Settings > Service Bus Settings > General Settings > Check the Use AMQP over WebSocket checkbox and click Save.

What is port 5671 used for? ›

Microsoft Service Bus Connector always requires the use of TLS (Transport Layer Security). It supports connections over TCP port 5671. Hence it requires 5671(default port used by AMQP) to be enabled in the network of the sender or receiver local system. Connection to Service Bus will fail if this port is disabled.

What ports are required for Azure Service Bus? ›

The Azure Service Bus transport uses ports 5671, 5672, and 443 to communicate with Azure servers. Configure firewall rules to allow outbound traffic through these ports. The legacy Azure Service Bus transport uses ports 9350 to 9354 to communicate with Azure servers.

What is port 5671 and 5672? ›

5671 TCP - RabbitMQ messaging (AMQP over TLS/SSL) 5672 TCP - RabbitMQ messaging (AMQP unencrypted backup port)

What protocol does the Azure Service Bus use? ›

Azure Service Bus' primary protocol is AMQP 1.0 and it can be used from any AMQP 1.0 compliant protocol client. Several open-source AMQP clients have samples that explicitly demonstrate Service Bus interoperability.

Top Articles
Latest Posts
Article information

Author: Clemencia Bogisich Ret

Last Updated:

Views: 6568

Rating: 5 / 5 (60 voted)

Reviews: 91% of readers found this page helpful

Author information

Name: Clemencia Bogisich Ret

Birthday: 2001-07-17

Address: Suite 794 53887 Geri Spring, West Cristentown, KY 54855

Phone: +5934435460663

Job: Central Hospitality Director

Hobby: Yoga, Electronics, Rafting, Lockpicking, Inline skating, Puzzles, scrapbook

Introduction: My name is Clemencia Bogisich Ret, I am a super, outstanding, graceful, friendly, vast, comfortable, agreeable person who loves writing and wants to share my knowledge and understanding with you.