I'm using a connection to a RabbitMQ. I develop on Windows and here it works. When I start on Linux I'm getting a exception:
None of the specified endpoints were reachable at at RabbitMQ.Client.ConnectionFactory.CreateConnection(IEndpointResolver endpointResolver, String clientProvidedName)
..at the last line from the code below:
string uri = $"amqps://{userName}:{password}@{hostName}:{port}/{virtualHost}";
factory.Uri = new Uri(uri);
IConnection RMQConnection = null;
RMQConnection = factory.CreateConnection();
What could cause these exceptions?