Problem : When connected from a remote client, this error is thrown (at client) – An unexpected connection driver error occured (Exception message: Socket closed)
Reason : As per default settings, the default user (“guest”) can access only from localhost (or Loop back IP).
Fix: Remove “guest” user from “loopback_users”. This is how –
[bash]
sudo vi /etc/rabbitmq/rabbitmq.config # create new file if in Ubuntu
[{rabbit, [{loopback_users, []}]}]. # Add this line, save and quit vim.
sudo rabbit-server restart # this mostly fails. So we grep & kill in next steps.
ps auxx|grep rabbitmq # gives multiple processes
kill -9 3099 3288 3289 10263 # process-Ids are place holders
sudo rabbitmq-server start
[/bash]
Should be able to connect from remote clients now.

Sreekumar (KJ) has been a hobby programmer from school days. Codemarvels is his personal blog from the year 2010, where he writes about technology, philosophy, society and a bit about physics.
He now runs a conversational AI company – DheeYantra – focusing his efforts to help businesses improve operational efficiency using digital employees powered by AI.