I want to connect to my remote SQL Server over a different network, namely the internet.
Even though my connection with Local IP is successful, I get connection error with Public IP (ex: 88.240.xxx.xxx).
I followed the steps below.
- I enabled SQL Server and Windows authentication modes
- I created a user
- I have enabled SQL Server to allow remote connections
- TCP/IP is enabled in SQL Server Configuration
- I set the TCP/IP>>TCPAll field to 1433
- I restarted SQL Server
- I added a rule for TCP and UDP in Windows Firewall
- I did port forwarding from the modem settings
After these steps, when I type local ip in the server name field, the connection is successful, but my connection with the public ip is lost. If anyone knows a way around this can help?
Error
A network-related or instance-specific error occurred while establishing a connection to SQL Server.
The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections.
(provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (Microsoft SQL Server, Error: 53)
SQL Server authentication mode