sql server tcp connection timed out

i have installed SQL server 2016 on a VPS that is running Win server 2016,
i have enabled TCP/IC conectivity
and made inbound rules for ports 1433,1434 and SQLSERV.exe.
also i have made a sample database and login that has access to that.

now i try to add this server and database into Visual studio using "add data connection" in server explorer .
i have chosen "MS SQL server" as data type, and then have used " tcp:XX.XX.XX.XX,1433" as server name and created username and password i get a error message :"...wait operator timed out."

i have also tried to increase connection timeout to 120s but no success.

0 answers