Hi Hitul,
1) Check your Server is accessible to client (ping the Ip)
2)
Go to SQL Server Configuration Manager , under Network configuration verify TCP/IP is enabled or not.
If not, enable TCP/IP and make all the port as 1433. restart the SQL Server Service.
3) Check the "b1-local-machine"(in DI API also) is referring to Server, I mean Ip adress or Server name.
4) Check you Server firewall , if it is on then turn off.
Regards
M G