unable to connect rabbitmq server on remote machine (windows server)

293 Views Asked by At

I'm using RabbitMq server 3.9.4 and OTP 24 on Windows Server 2019 and want to connect remote host.

in the rabbitmq i created user with those settings:

rabbitmqctl add_user rmq password
rabbitmqctl set_permissions -p / rmq ".*" ".*" ".*"
rabbitmqctl set_user_tags rmq administrator

and opened port 5672 in the firewall for remote access.

I'm trying to connect my .net rabbitmq client from other machine but connection refused.

 var factory = new ConnectionFactory
            {
                HostName = "myhostname",
                UserName = "rmq",
                Password = "password",
            };                                                                              
var connection = factory.CreateConnection()
0

There are 0 best solutions below