# How to add ports

**URL:** <https://forum.mautic.org/t/how-to-add-ports/17065>\
**Category:** Product Support\
**Tags:** community\
**Created:** [November 18, 2020, 7:33pm UTC](https://forum.mautic.org/t/how-to-add-ports/17065 "2020-11-18T19:33:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![pcs](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/pcs/32/1128_2.png) [@pcs](https://forum.mautic.org/u/pcs)\
**Post date:** [November 18, 2020, 7:33pm UTC](https://forum.mautic.org/t/how-to-add-ports/17065/1 "2020-11-18T19:33:48Z")

</div>

**Your software**  
My Mautic version is: 2.16.1  
My PHP version is: 7.3  
My Database type and version is:?

**Your problem** need to try to update your php project to connect to localhost:55672 instead of just localhost:5672  
My problem is:

These errors are showing in the log: [2020-11-18 17:04:02] mautic.CRITICAL: Uncaught PHP Exception ErrorException: “stream\_socket\_client(): unable to connect to tcp://localhost:5672 (Network is unreachable)” at /home4/erbornb2/providencesilverco.com/mautic/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Wire/IO/StreamIO.php line 141 {“exception”:"[object] (ErrorException(code: 0): stream\_socket\_client(): unable to connect to tcp://localhost:5672 (Network is unreachable) at /home4/erbornb2/providencesilverco.com/mautic/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Wire/IO/StreamIO.php:141)"}

Steps I have tried to fix the problem: Just read and have ask my hosting company what to do they said to do the above. But I don’t know where to start need some guidance.

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [November 19, 2020, 1:26pm UTC](https://forum.mautic.org/t/how-to-add-ports/17065/2 "2020-11-19T13:26:14Z")

</div>

Hi!  
Is this email sending port?

Thx,  
J

---

<div class="post-metadata">

**Author:** ![pcs](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/pcs/32/1128_2.png) [@pcs](https://forum.mautic.org/u/pcs)\
**Post date:** [November 20, 2020, 12:00am UTC](https://forum.mautic.org/t/how-to-add-ports/17065/3 "2020-11-20T00:00:51Z")

</div>

I don’t know if it a sending port it says in the rabbitmq dashboard it says a listing ports. It seems that this mautic you need this rabbitmq to handle the cronjobs. When I posted this message I did not have Rabbit set up now it is seems to working but I might have the port mixed up?  
Here is the new message [[2020-11-19 22:48:59] mautic.CRITICAL: Uncaught PHP Exception ErrorException: “stream\_socket\_client(): unable to connect to tcp://localhost:15672:55672 (Network is unreachable)” at /home4/erbornb2/providencesilverco.com/mautic/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Wire/IO/StreamIO.php line 141 {“exception”:"[object] (ErrorException(code: 0): stream\_socket\_client(): unable to connect to tcp://localhost:15672:55672 (Network is unreachable) at /home4/erbornb2/providencesilverco.com/mautic/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Wire/IO/StreamIO.php:141)"} ]  
Thx.  
Ron

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [November 20, 2020, 2:28pm UTC](https://forum.mautic.org/t/how-to-add-ports/17065/4 "2020-11-20T14:28:28Z")

</div>

RabbitMQ is a queuing protocol, most users don’t need it. Unless you know what you are doing turn it off. You can do it in the Settings - Configuration - Queue Settings. Choose deactivated.  
Good luck!

---

<div class="post-metadata">

**Author:** ![pcs](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/pcs/32/1128_2.png) [@pcs](https://forum.mautic.org/u/pcs)\
**Post date:** [November 20, 2020, 3:12pm UTC](https://forum.mautic.org/t/how-to-add-ports/17065/5 "2020-11-20T15:12:26Z")

</div>

Thank you that seems to have stop the error. I am having a problem with loading the contacts. they don’t seem to be going and when they do only a small percentage get loaded to the segment.  
Thanks  
Ron

---

<div class="post-metadata">

**Author:** ![pcs](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/pcs/32/1128_2.png) [@pcs](https://forum.mautic.org/u/pcs)\
**Post date:** [November 19, 2020, 11:04pm UTC](https://forum.mautic.org/t/how-to-add-ports/17065/6 "2020-11-19T23:04:05Z")

</div>

I am not connect the contact to the mail.  
I have segment and contact done  
I have put in the rabbitmq for the queue and it still does not move. unless I to add some in the rabbit which I have not found any literature on.  
I change the local host to 55672 in the php  
here is the message now?

[2020-11-19 22:48:59] mautic.CRITICAL: Uncaught PHP Exception ErrorException: “stream\_socket\_client(): unable to connect to tcp://localhost:15672:55672 (Network is unreachable)” at /home4/erbornb2/providencesilverco.com/mautic/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Wire/IO/StreamIO.php line 141 {“exception”:"[object] (ErrorException(code: 0): stream\_socket\_client(): unable to connect to tcp://localhost:15672:55672 (Network is unreachable) at /home4/erbornb2/providencesilverco.com/mautic/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Wire/IO/StreamIO.php:141)"}
