1

I've entered the IP address from the Windows Azure Portal (both the one specified in the website Dashboard or within the Manage Domains area) but when trying to use SagePay Direct it returns that it is not a valid IP address.

I eventually solved this by doing a "showpost" for SagePay and then having to tell me what the IP address is.

The problem is - how can I determine this IP address for myself? As I worry that the IP address could change in the future.

If I use "Request.ServerVariables("LOCAL_ADDR")" (Classic ASP) it seems to return the local IP address of the webserver.

4

2 回答 2

0

你看到的用于 A 记录的 IP 地址不是 Azure 网站使用的传出 IP 地址。因此,为什么 SagePay 不接受来自该网站的交易,因为它是一个无效的 IP 地址。

相反,您需要添加 4 个 IP 地址,这 4 个 IP 地址取决于您的站点使用的缩放单元。可以从 Azure 网站的 FTP 主机名中找到站点的缩放单位。例如: ftp: //waws-prod-blu-011.ftp.azurewebsites.windows.net - 比例单位是 'waws-prod-blu-011'

然后我把它放到谷歌上,然后出现了几篇天蓝色的维护文章。滚动文章以查看您所在的地区,然后是您的比例单位和您需要的 4 个 IP 地址。

有关详细信息,请参阅此 Azure 维护文章

于 2015-04-09T10:55:48.353 回答
0

如果您创建一个脚本或仅返回访问者 IP 地址并从您的服务器向该脚本发出请求、获取或发布的内容怎么办?

于 2014-01-14T14:27:52.757 回答