Question
How do I configure SQL Server to allow connections from a specific IP address to avoid authentication errors?
Asked by: USER9289
109 Viewed
109 Answers
Answer (109)
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).