Why is my connection to a SQL Server getting blocked even though my public IP is in the allow list?

Erich Late 0 Reputation points
2025-12-01T23:03:14.93+00:00

I have a SQL Server that is blocking connection from a specific office. I have already added the office public IP to the allow list. When trying to connect I get an error that says the public IP is not allowed and has been blocked. I have already removed the allow list entry and re-added it. The error code is NativeError=40615. I have other offices that are in the allow list that are not having this issue.

Azure SQL Database
{count} votes

1 answer

Sort by: Most helpful
  1. Shruti Dhruv 405 Reputation points Microsoft External Staff Moderator
    2025-12-02T12:48:52.47+00:00

    Hi Eric,

    You can try these troubleshooting steps-

    1. Go to [Azure Portal → SQL Server → Firewall settings] and check the "Client IP" shown when you open the firewall settings page. This is the IP Azure sees for your connection attempt then compare it with the IP you added. If they differ, your office might be using NAT or Proxy that changes the outbound IP
    2. Azure SQL firewall does not support IPv6. If your network uses IPv6, ensure the client is connecting over IPv4.

    Hope this helps!
    Thank You for using Microsoft Q&A Forum

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.