【问题标题】:Unable to access SQL Azure database using IP address?无法使用 IP 地址访问 SQL Azure 数据库?
【发布时间】:2015-02-19 05:33:24
【问题描述】:

因为我的machine IP gets changed dynamically(使用网站whatismyip.com 获取ip)我可以not able to access and set Server-Level Firewall Rules to sql azure database

我尝试将范围也添加到 0.0.0.0 到 255.255.255.255 但它不起作用。

有什么办法可以访问 SQL Azure 吗?

出现错误:

【问题讨论】:

  • 您应该将您的外部 IP 地址添加到防火墙,而不是您的内网 IP 地址。使用whatismyip.com 之类的网站检查您的外部 IP 地址
  • 我试过同样的方法不起作用:(我应该在范围内输入什么?例如我的IP是122.21.212.212
  • 会不会是您的防火墙只是阻止了端口 1433 上的 SQL 连接?
  • 我也这么认为,我必须向我的网络团队确认这一点
  • 我尝试在sql server configuration manager 中添加端口,但仍然没有用:(

标签: azure ip-address azure-sql-database virtual-ip-address


【解决方案1】:

我前段时间写了一篇关于如何使用 Azure 虚拟网络提供的点到站点 VPN 访问 SQL Azure 实例的帖子。它不需要在 SQL Azure 端打开任何东西。这是它的链接:http://rtumaykin-it.blogspot.com/2015/01/using-linux-iptables-port-forwarding.html

创建虚拟网络和 VPN 的方法如下:https://azure.microsoft.com/documentation/articles/vpn-gateway-point-to-site-create/

希望这个解决方案可以提供帮助。

【讨论】:

    【解决方案2】:

    SQL Azure 要求您添加要添加到限制的公共 IP 地址,以便您可以访问它。转到 whatismyip.com ,获取您到达那里的地址并将其粘贴到 Azure 管理门户中的允许 IP 列表中。

    【讨论】:

      猜你喜欢
      • 2021-07-26
      • 2014-11-04
      • 1970-01-01
      • 2018-09-29
      • 1970-01-01
      • 2018-05-09
      • 2015-08-17
      • 2021-04-07
      • 1970-01-01
      相关资源
      最近更新 更多