iis - 如何通过wifi访问Azure存储模拟器(本地)?

标签 iis azure azure-storage azure-blob-storage azure-storage-emulator

我按照本文档中的信息访问 azure 存储模拟器(本地)

http://msdn.microsoft.com/en-us/library/azure/hh403989.aspx

In the storage emulator, because the local computer does not perform domain name resolution, the account name is part of the URI path. The URI scheme for a resource running in the storage emulator follows this format:

http://<local-machine-address>:<port>/<account-name>/<resource-path>

The following format is used for addressing resources running in the storage emulator:

Blob Service:

http://127.0.0.1:10000/<account-name>/<resource-path>

Queue Service:

http://127.0.0.1:10001/<account-name>/<resource-path>

Table Service:

http://127.0.0.1:10002/<account-name>/<resource-path>

For example, the following address might be used for accessing a blob in the storage emulator:

http://127.0.0.1:10000/myaccount/mycontainer/myblob.txt

如果我尝试从计算机上运行的任何东西(例如本地 IIS 服务器等)访问它,它工作正常,那是因为它可以访问电脑上的 127.0.0.1

但是如果我尝试从同一 Wi-Fi 网络上的移动设备访问它会怎样?

我可以通过移动设备访问本地 IIS 服务器,方法是转到 applicationhost.config 并将本地 IIS 服务器绑定(bind)到计算机 LAN IP(例如 192.168.1.5 等)

知道如何为 azure 存储模拟器进行此绑定(bind)吗?即如何将其公开到 LAN?

谢谢

最佳答案

本地模拟服务不适用于远程访问。我确实记得有人设置“环回”连接来帮助实现这一点的报告。但恕我直言,在大多数情况下,简单地在云中运行服务几乎更容易且更具成本效益。这也有助于避免云和本地之间存在差异的任何问题。

如果我们考虑进行移动设备开发...您可以轻松地花费几个小时来尝试正确设置环回。如果我们为此定价......比如说 25 美元/小时......我们花了 3 个小时来设置它。所以我们只花了 75 美元来 build 它。相比之下,我们可能可以在一年的大部分时间里使用同样的 75 美元来针对云存储帐户进行开发。

关于iis - 如何通过wifi访问Azure存储模拟器(本地)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24370010/

相关文章:

asp.net - 无法启动任何 ASP.NET 项目

java - Azure MobileService 返回 NullPointerException (Android)

azure - 流分析: Dynamic output path based on message payload

c# - 从 Azure Management Fluent 创建 Azure 存储帐户时如何指定 CORS 设置

c# - ASP.NET Core - 使用 Windows 身份验证进行授权

c# - 在 IIS 中枚举应用程序池

iis - 如何指定适用于单个子目录下所有 URI 的单个 IIS 处理程序映射路径?

Azure函数- 'azure-functions-host'文件夹的位置

c# - Azure 资源管理 API 未显示虚拟机状态?

azure - Azure CDN 和同一数据中心内的托管应用程序之间是否收费?