Menu

Unable to connect(Connection refused)

Help
2008-10-31
2013-04-22
  • Simon Mallet

    Simon Mallet - 2008-10-31

    Warning: [ODBTPERR][0]Unable to connect to server (Connection refused) in C:\wamp\www\BILLING\index.php on line 11

        $con = odbtp_connect( '192.168.0.145',
                              'DRIVER={Pervasive ODBC Client Interface};UID=XX;PWD=XX;SERVER=192.168.0.145;DATABASE=SAMINC;' ) or die;

    Hi, I'm trying to connect using Pervasive ODBC connection, but for some reason I get COnnection Refused... I tried with a valid u/p to usually connect to the server and I get nothing (connection refused).

    Any ideas ?

    (using PHP 5.2 -> I do have the latest DLL file from the repository)

     
    • Robert Twitty

      Robert Twitty - 2008-10-31

      This error normally occurs if the ODBTP service is not running on the target machine. You need to verify that client computer can access port 2799 on the remote machine. You can verify this using "telnet server-ip 2799" via the command line.

      -- bob

       
    • Simon Mallet

      Simon Mallet - 2008-11-03

      That was it ! I thought if you installed ODBTP in PHP it would magically work with ODBC directly without needing anything on the server itself...

      Then I clicked this afternoon that it could have something to do with the server.
      So I installed the winservice on it and then I was able to connect.

      Thanks a lot for the feedback. Saved me a lot of research time.

       

Log in to post a comment.