How do I configure SQL Server to allow connections from a specific IP address to avoid authentication errors?

Responsive Ad Header

Question

Grade: Education Subject: Support
How do I configure SQL Server to allow connections from a specific IP address to avoid authentication errors?
Asked by:
109 Viewed 109 Answers

Answer (109)

Best Answer
(477)
You can configure SQL Server to allow connections from a specific IP address by adding the IP address to the `MATCHED LOGIN` list for the SQL Server login. Use the `ALTER LOGIN` statement: `ALTER LOGIN [username] WITH MATCHED LOGIN = [IP_address];` Replace `[username]` with the login name and `[IP_address]` with the IP address. Ensure that the firewall on the SQL Server machine also allows connections from the specified IP address on the SQL Server port (typically 1433).