Reputation: 315
I 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.
Upvotes: 2
Views: 2731
Reputation: 15621
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.
Upvotes: 2
Reputation: 59001
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:
See also Manage firewall rules using the Azure portal
Upvotes: 0