port conflict issue due to rabbitmq dynamic ports allocation

82 views
Skip to first unread message

satvinder gill

unread,
Jul 8, 2024, 6:50:49 AM7/8/24
to rabbitmq-users
Hi Everyone,

we are facing port conflict issue while starting any docker container on Host as RabbitMQ is assigning below dynamic ports for internal communication , can you please help to get rid of this issue.

tcp        0      0 ::ffff:ContainerIP:5672 ::ffff:172.16.1.1:56090 ESTABLISHED -
tcp        0      0 ::ffff: ContainerIP  :5672 ::ffff:172.16.1.1:56084 ESTABLISHED -
tcp        0      0 ::ffff: ContainerIP  :5672 ::ffff:172.16.1.1:55968 ESTABLISHED -
tcp        0      0 ::ffff: ContainerIP  :5672 ::ffff:172.16.1.1:56098 ESTABLISHED -
tcp        0      0 ::ffff: ContainerIP  :5672 ::ffff:172.16.1.1:56094 ESTABLISHED -
tcp        0      0 ::ffff: ContainerIP  :5672 ::ffff:172.16.1.1:56080 ESTABLISHED -
tcp        0      0 ::ffff: ContainerIP  :5672 ::ffff:172.16.1.1:56072 ESTABLISHED -

satvinder gill

unread,
Jul 9, 2024, 5:48:56 AM7/9/24
to rabbitmq-users
can anyone help here , i want ports should not be dynamically allocated , how we can control the ports which RabbitMQ is using internally 

Michal Kuratczyk

unread,
Jul 9, 2024, 5:56:13 AM7/9/24
to rabbitm...@googlegroups.com
You barely explained what your concern is. As far as I can tell, there's no issue whatsoever - just a lack of understanding how TCP works.
Your connections are to port 5672, which is a well-known destination port that RabbitMQ listens on. 
You are probably worried about 56090 and the other high port numbers but these are source ports. They are supposed to be random (more or less).

If you expect further help, elaborate on the problem (if there's any).


--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/2f3ca161-b5c1-498e-b2e5-ef387345a3d4n%40googlegroups.com.


--
Michal
RabbitMQ Team

This electronic communication and the information and any files transmitted with it, or attached to it, are confidential and are intended solely for the use of the individual or entity to whom it is addressed and may contain information that is confidential, legally privileged, protected by privacy laws, or otherwise restricted from disclosure to anyone else. If you are not the intended recipient or the person responsible for delivering the e-mail to the intended recipient, you are hereby notified that any use, copying, distributing, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited. If you received this e-mail in error, please return the e-mail to the sender, delete it from your computer, and destroy any printed copy of it.

x yang

unread,
Jul 12, 2024, 3:20:01 AM7/12/24
to rabbitmq-users
ip_local_reserved_ports - list of comma separated ranges. Specify the ports which are reserved for known third-party applications. These ports will not be used by automatic port assignments (e.g. when calling connect() or bind() with port number 0). Explicit port allocation behavior is unchanged.
So modify /proc/sys/net/ipv4/ip_local_reserved_ports may works.

satvinder gill

unread,
Jul 23, 2024, 1:39:22 AM7/23/24
to rabbitmq-users
this didn't work , can you suggest any other solution 
Reply all
Reply to author
Forward
0 new messages