# Can not send tasks to rabbitmq from outside the Fly network

**URL:** <https://community.fly.io/t/can-not-send-tasks-to-rabbitmq-from-outside-the-fly-network/10614>\
**Category:** Questions / Help\
**Created:** [February 7, 2023, 7:01am UTC](https://community.fly.io/t/can-not-send-tasks-to-rabbitmq-from-outside-the-fly-network/10614 "2023-02-07T07:01:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amijad](https://avatars.discourse-cdn.com/v4/letter/a/ac91a4/32.png) [@Amijad](https://community.fly.io/u/Amijad)\
**Post date:** [February 7, 2023, 7:01am UTC](https://community.fly.io/t/can-not-send-tasks-to-rabbitmq-from-outside-the-fly-network/10614/1 "2023-02-07T07:01:44Z")

</div>

The problem that I have is that I have Rabbitmq and Celery running on fly (versions and configs are below). Both of them deploy normally and without any problems, however when I send a task to Rabbitmq on fly using the public dedicated Ipv4 address I get the following error: “Server has closed the connection unexpectedly”.

Versions and configurations:  
OS: Ubuntu 20.04.4 LTS  
Rabbitmq version: 3.8.2  
Celery version: 5.2.7

The fly.toml file for Rabbitmq:

app = “rabbitmqserver”  
kill\_signal = “SIGINT”  
kill\_timeout = 5  
processes =

[env]

[experimental]  
auto\_rollback = true

[[services]]  
http\_checks =   
internal\_port = 5672  
processes = [“app”]  
protocol = “tcp”  
script\_checks =

[[services.ports]]  
handlers = [“tls”]  
port = 5672

Can you provide a suitable configuration for Rabbitmq so that I can send tasks to it using it’s Ipv4 address?

---

<div class="post-metadata">

**Author:** ![bogordesain](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/bogordesain/32/44963_2.png) [@bogordesain](https://community.fly.io/u/bogordesain)\
**Post date:** [January 20, 2024, 4:38am UTC](https://community.fly.io/t/can-not-send-tasks-to-rabbitmq-from-outside-the-fly-network/10614/2 "2024-01-20T04:38:28Z")

</div>

Please see my config [RabbitMQ on Fly.io - #6 by paulwvnjohi](https://community.fly.io/t/rabbitmq-on-fly-io/5510/6)
