Xamarin + RabbitMq本地主机连接问题

时间:2019-07-08 10:43:32

标签: xamarin .net-core rabbitmq rawrabbit

我在Xamarin.Forms(android)+ .Net核心API中拥有移动应用程序。我们发现了如何使用kestrel和适当的启动设置(相同的wifi网络)通过本地托管的API调试移动请求。 现在我在访问本地RabitMq服务器时遇到问题。 我之所以使用RawRabbit包装器,是因为它提供了良好而轻松的配置。 当前配置:

var config = new RawRabbitConfiguration
        {
            Username = "test",
            Password = "test",
            VirtualHost = "/",
            Port = 5672,
            Hostnames = new List<string>() { "10.0.0.5" },
            RequestTimeout = TimeSpan.FromSeconds(10),
            PublishConfirmTimeout = TimeSpan.FromSeconds(1),
            RecoveryInterval = TimeSpan.FromSeconds(10),
            PersistentDeliveryMode = true,
            AutoCloseConnection = false,
            AutomaticRecovery = true,
            TopologyRecovery = true,
            Exchange = new GeneralExchangeConfiguration()
            {
                Type = ExchangeType.Topic,
                AutoDelete = false,
                Durable = true,
            }
        };

例外是超时。 是否有可能允许通过整个局域网对该Ip /端口进行访问? 注意:我添加了防火墙规则,以允许输入/输出端口5672,结果相同。

在此先感谢您的提示

0 个答案:

没有答案