first of all check you firewall setting. if your problem still exist, check client proxy setting. also check you sql server connection from client. for do this create a new text file and change filename.txt to filename.udl, now run it and check your connection.
if your problem does not solve, provide your code.