Connection timeout expired
Posted: Wed 08 Jul 2015 22:13
Hello,
I have an application that connects to a remote PostgreSQL DB via SecureBridge. The application works perfectly on my local machine but when the exact same application runs on a remote VPS server then I have the following error message: Exception SocketException in module xxxxx.exe at yyyyy Connection timeout expired
In addition, if I try to connect the same application on the VPS server to a PostgreSQL DB on the same VPS machine (local DB) I have the following error message: A connection with the server could not be established
The following are the parameters I use to connect the application to the remote DB
ScSSHChannel.SourcePort=5440
ScSSHChannel.DestPort=5432
ScSSHChannel.DestHost='DestinationHost'
ScSSHChannel.Timeout=10
PgConnection.Server='localhost'
PgConnection.Username='xxxxxxxx'
PgConnection.Password=yyyyy
PgConnection.Database='zzzzzzzz'
PgConnection.Port=5440
ScSSHClient.HostName='Remotehosting.com'
ScSSHClient.Port=7822
ScSSHClient.User='xxxxxxxxx'
ScSSHClient.Password=yyyyyyyy
ScSSHClient.Timeout=10
I tried to set ScSSHChannel.Timeout=100 and ScSSHClient.Timeout=100 but I keep on receiving the same errors.
Any idea on the cause and how to fix it ?
Many thanks
Pio Pio
I have an application that connects to a remote PostgreSQL DB via SecureBridge. The application works perfectly on my local machine but when the exact same application runs on a remote VPS server then I have the following error message: Exception SocketException in module xxxxx.exe at yyyyy Connection timeout expired
In addition, if I try to connect the same application on the VPS server to a PostgreSQL DB on the same VPS machine (local DB) I have the following error message: A connection with the server could not be established
The following are the parameters I use to connect the application to the remote DB
ScSSHChannel.SourcePort=5440
ScSSHChannel.DestPort=5432
ScSSHChannel.DestHost='DestinationHost'
ScSSHChannel.Timeout=10
PgConnection.Server='localhost'
PgConnection.Username='xxxxxxxx'
PgConnection.Password=yyyyy
PgConnection.Database='zzzzzzzz'
PgConnection.Port=5440
ScSSHClient.HostName='Remotehosting.com'
ScSSHClient.Port=7822
ScSSHClient.User='xxxxxxxxx'
ScSSHClient.Password=yyyyyyyy
ScSSHClient.Timeout=10
I tried to set ScSSHChannel.Timeout=100 and ScSSHClient.Timeout=100 but I keep on receiving the same errors.
Any idea on the cause and how to fix it ?
Many thanks
Pio Pio