I have to access a remote SQL Server from my system over the net. I have the IP address , UserID and Password for the database. But I am getting an error saying [Connection failed. Check SQL Server registration properties]

Error message is :
ConnectionOpen(CreateFile()) failed.

What could be the possible reason for this? How to get rid of it?