我在 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,结果相同。
提前感谢任何提示