2
votes

enter image description hereI am trying to connect a database created in Azure but an error:

Cannot open server '' requested by the login. Client with IP address 'x.x.x.x' is not allowed to access the server. To enable access, use the Windows Azure Management Portal or run sp_set_firewall_rule on the master database to create a firewall rule for this IP address or address range. It may take up to five minutes for this change to take effect. (Microsoft SQL Server, Error: 40615)

is showing up

I have added my IP address in firewall settings of the database created in azure

should i put client IP address in server name of sql server

can anyone help me please.

2
Check your IP address with the IP address in the "Client with IP address 'x.x.x.x' ..." message. If your firewall settings actually has that IP address added there's something wrong. However, I think there might be a difference or, like @martin-brandl said, you forgot to press 'Save'.rickvdbosch
should my ip and the client ip be the same??Boney Jose
You have added the internal IP addresses. You should add your public IP address, since that is the one used to access the serverrickvdbosch

2 Answers

2
votes

You have added the internal IP addresses. Which are used for internal communication.

You should add your public IP address, since that is the one used over the internet to access the server.

0
votes

Yes, adding your IP address to the firewall settings of the database is the right way to solve it. You probably forgot to save it:

enter image description here

See also Manage firewall rules using the Azure portal