Applications talk to RabbitMQ over AMQP 0-9-1 on port 5672/TCP; the TLS variant is on 5671. The management plugin's web UI runs on 15672, and RabbitMQ nodes in a cluster additionally communicate via 25672 and 4369 (epmd).
The port belongs on the internal network only: allow the app servers, and use TLS on 5671 for connections over untrusted networks. According to the documentation the default user guest can only log in from localhost – for remote clients create your own user with rabbitmqctl add_user and suitable permissions. Do not publish the management interface.
Typical: ACCESS_REFUSED on remote access with guest, or "connection refused" because the firewall or listeners.tcp does not expose the port. The connection test shows whether the service is listening.
Check
nc -vz mq.example.com 5672