EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Mysql local port forward problems

Also by EldoS: CallbackDisk
Create virtual disks backed by memory or custom location, expose disk images as disks and more.
#3211
Posted: 06/25/2007 21:00:09
by steve orford (Standard support level)
Joined: 03/07/2007
Posts: 22

Me again. It reached the point in development that I really need to get my local port forwarding working well, and stably.

I'm trying to get an ssh connection up to a mysql server using local port forwarding. I've used the demo app and that works OK, (simple local port forwarding demo). However if I add the TElSSHLocalPortforwarding component to my core application and steal a bit of the demo code as follows, I get no connection, and socket errors:

Using BDS2006 Delphi and Corelabs MyDAC components, also MySQL5

procedure Tsplash.Formshow(Sender: TObject);
begin
if not Forwarding.Active then
begin
Forwarding.Address := 'mysqlserver.com';
Forwarding.Port := 22;
Forwarding.ForwardedPort := 3306;
Forwarding.ForwardedHost := '';
Forwarding.DestHost := '127.0.0.1';
Forwarding.DestPort := 3306;
Forwarding.Username := 'user';
Forwarding.Password := 'password';
Forwarding.Open;
end;
end;

I set the TMyConnection server to 127.0.0.1, port 3306.

Am I doing anything stupid here?



#3212
Posted: 06/25/2007 22:28:17
by steve orford (Standard support level)
Joined: 03/07/2007
Posts: 22

Fixed, the servers firewall had been changed which was screwing everything up.

Reply

Statistics

Topic viewed 1374 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!