Hello there to all !
I have a wierd issue which i do not know how to handle it and thus i am asking your help !
I am using the renci.ssh library for using mysql through ssh tunnel
When i use the tunnel with the mysql server in then local network the connection is working fine !
When i change settings try to use it though the network it does not work and thus it works only if i specify 127.0.0.01 in both host and bound hosts parameters !
Below is my code in both ways !
Local Network
mvarSSH.AddForwardedPort(New Ssh.ForwardedPortLocal(System.Net.Dns.GetHostName.Trim, 3306, mvarSSH.ConnectionInfo.Host.Trim, 3306))
Internet Version
mvarSSH.AddForwardedPort(New Ssh.ForwardedPortLocal("127.0.0.1", 3306, "127.0.0.1", 3306))
Is there any special behavior when it is on the Internet or In the Local Network ? Why it has to be setted in both parameters in 127.0.0.1?
I have to mention that with PLink works fine in both cases !
I have a wierd issue which i do not know how to handle it and thus i am asking your help !
I am using the renci.ssh library for using mysql through ssh tunnel
When i use the tunnel with the mysql server in then local network the connection is working fine !
When i change settings try to use it though the network it does not work and thus it works only if i specify 127.0.0.01 in both host and bound hosts parameters !
Below is my code in both ways !
Local Network
mvarSSH.AddForwardedPort(New Ssh.ForwardedPortLocal(System.Net.Dns.GetHostName.Trim, 3306, mvarSSH.ConnectionInfo.Host.Trim, 3306))
Internet Version
mvarSSH.AddForwardedPort(New Ssh.ForwardedPortLocal("127.0.0.1", 3306, "127.0.0.1", 3306))
Is there any special behavior when it is on the Internet or In the Local Network ? Why it has to be setted in both parameters in 127.0.0.1?
I have to mention that with PLink works fine in both cases !