I’m often asked about port which are required to use Service Bus. Unfortunately it is not always easy to give the right and simple answer.
In fact the right answer would be as usual: “It depends”. In this case the required port set depends on feature which you want to use in Service Bus.
Service Bus feature set can be grouped in WCF (Relays), Brokered Messaging and Notification Hubs.
I tried to put all together in this table:
Outgoing TCP Port | Used by | Used by Hybrid connector? |
80 | HTTP connection mode | No |
443 | HTTPS connection mode | Only as fallback |
5671 | Advanced Message Queuing Protocol (AMQP) | Yes for connectivity. If not available 443 is used as fallback |
5672 | Advanced Message Queuing Protocol (AMQP) | No |
9350 | TCP Relays without Transport Security | No |
9351 | TCP Relays via NetEventRelayBinding, WebHttpRelayBinding, NetOnewayRelayBinding SSL | No |
9352 | TCP Relays via NetTcpRelayBinding - SSL | Yes for data exchange. If not available 443 is used as fallback |
9353 | TCP Relay with hybrid connection. NetTcpRelayBinding | No |
9354 | Brokered Messaging Queues/Topics/Notfication Hubs service side (client uses Push Notification Service) | No |
| | |
Note that all ports are TCP outgoing ports. When using service bus there is no need to have an incoming connection.
More about bindings and ports: http://msdn.microsoft.com/en-us/library/ee732535.aspx
Posted
Jul 31 2014, 07:37 AM
by
Damir Dobric