Is it possible to have the Windows Azure emulator open the browser to a URL other than 127.0.0.1

让人想犯罪 __ 提交于 2020-01-01 16:58:48

问题


Simple question but lots of meaning/discussion behind!!!

Is it possible to have the Windows Azure emulator open the browser to a URL other than 127.0.0.1 and port 81?


回答1:


Follow the steps to change 127.0.0.1 to desire IP

Compute Emulator Settings:

  1. Go to %Program Files%\Microsoft SDKs\Windows Azure\Emulator\devfabric
  2. Take backup of “DevFC.exe.config” so that if something goes you can revert it back.
  3. Change following settings to desired IP address range and subnet:
    • <add key="StartIPAddress" value="192.168.0.20"/> (This can be IP address on your machine)
    • <add key="EndIPAddress" value=”192.168.0.40" />
    • <add key="VipPoolStartIPAddress" value="127.0.0.1" />
    • <add key="VipPoolEndIPAddress" value="127.0.0.255" />
    • <add key="DefaultGateway" value="192.168.0.1" />
    • <add key="SubnetMask" value="255.255.255.0" />
  4. Save the config file.
  5. Restart the compute emulator.

Storage Emulator Settings:

  1. Go to %Program Files%\Microsoft SDKs\Windows Azure\Emulator\devstore

  2. Take backup of “DSServiceLDB.exe.config” so that if something goes you can revert it back.

  3. Take backup of “DSServiceSQL.exe.config” so that if something goes you can revert it back.

  4. Change the IP address 127.0.0.1 to desired IP address in the services section of both the config file:

    • <services>
    • <service name="Blob" url="http: //192.168.1.20:10000/"/>
    • <service name="Queue" url="http: //192.168.1.20:10001/"/>
    • <service name="Table" url="http: //192.168.1.20:10002/"/>
    • </services>
  5. Save both the config files and restart the storage emulator.

Finally change the storage account connection string in visual studio so that it points to proper IP address. The emulator uses following credentials:

Account Name: devstoreaccount1

Account key: Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==

Note: If the above account key does not work then check account key in “DSServiceSQL.exe.config” file under “<accounts>” section.

Make sure you specify custom endpoint based on your IP address as shown in the screen shots below.

That’s all needed to run Azure Emulator on local network!

Original blog: http://blog.piyushthacker.com/?p=24




回答2:


Yes it is. Right click the project -> Properties -> Web -> Open Specific Page OR Start Url



来源:https://stackoverflow.com/questions/16337246/is-it-possible-to-have-the-windows-azure-emulator-open-the-browser-to-a-url-othe

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!