Re: Syncing local and remote database - WeOnlyDo Discussion board

Re: Syncing local and remote database (General questions)

by wodDrazen, Sunday, April 09, 2006, 01:01 (4243 days ago) @ Ketan

Hi Ketan,


This code show how to connect to remote server and listen remote servers port 3000 on local port 3000.

---------------------------
Private Sub Form_Load()

Set tunnel1 = New wodTunnelCom

tunnel1.HostName = your_server
tunnel1.Login = login
tunnel1.Password = password
tunnel1.Protocol =SSHAuto
tunnel1.Port = 22
tunnel1.Connect

End Sub


Private Sub ssh_Connected()

tunnel1.Channels.Add LocalListen, 127.0.0.1 , 3000, 0.0.0.0 , 3000
tunnel1.Channels.StartAll

End Sub
---------------------------

Hope this helps.

Regards,
Drazen


Complete thread: