When we set the configuration parameter stream.advertised_host (https://www.rabbitmq.com/stream.html#advertised-host-port) to hostname and we try to connect with localhost then it is failing. We had this issue on all the streaming clients. A fix has been already implemented on java and .net for that. See as reference: https://github.com/rabbitmq/rabbitmq-stream-dotnet-client/pull/305