# Server root unable to connect to rabbitmq

**URL:** <https://forum.metasfresh.org/t/server-root-unable-to-connect-to-rabbitmq/2178>\
**Category:** Setup\
**Tags:** english\
**Created:** [December 24, 2023, 2:50pm UTC](https://forum.metasfresh.org/t/server-root-unable-to-connect-to-rabbitmq/2178 "2023-12-24T14:50:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohamed\_Ismail](https://forum.metasfresh.org/user_avatar/forum.metasfresh.org/mohamed_ismail/32/943_2.png) [@Mohamed\_Ismail](https://forum.metasfresh.org/u/Mohamed_Ismail)\
**Post date:** [December 24, 2023, 2:50pm UTC](https://forum.metasfresh.org/t/server-root-unable-to-connect-to-rabbitmq/2178/1 "2023-12-24T14:50:47Z")

</div>

I am following [intellij guide](https://docs.metasfresh.org/intellij_collection/EN/setting_up_intellij_idea.html) to set up my dev env locally, when i run server boot and webRestApiApplication, it show logs error that its unable to connect to rabbitmq, despite i provided the correct host and port, and i am runnig the rabbitmq in docker container like in the guide by infrastracture docker-compose.  
first i had this error : ''java.net.UnknownHostException: rabbitmq: Temporary failure in name resolution",  
so i added rabbitmq to ‘etc/hosts’ with my local ip address  
then another error showed, connection refused.  
can you guys explain to me how to set up correcly my dev env and how provide the correct configs with metasfresh.properties and application.properties files
