Jeppe 0 Newbie Poster

The MS SQL 7.0 Server is installed on a Windows server, not placed in my home. I want to make a SQL query from my home, using java JDBC, but I get an error:

java.sql.SQLException: Network error IOException: Connection timed out: connect

- This error I don´t get if I´m connected to the server through VPN. Then when I try to run the same Java JDBC connection, I can query and it works without any problems. Why is that? How can I set the setting on the the MS SQL server 7.0, so I´m allowed to make a JDBC connection queries from my home, even if I´m connected through VPN?

Thanks...