Feb 29, 2012 at 2:56 PM
Edited Feb 29, 2012 at 3:06 PM
Hi to all.
I'm using the code to do remote port forwarding, but I have a little problem: I use the constructor
public T AddForwardedPort<T>(string boundHost,
uint boundPort, string connectedHost,
uint connectedPort) where T : ForwardedPort,
but after the remote port forwarding if I make "netstat -a" in cmd I see that my pc is listening only on the loopback interface the remote port and not my boundhost string...
I can't understand why!
For example: if I make a reverse connection in this way
client.AddForwardedPort<ForwardedPortRemote>("192.168.1.2",51000, "127.0.0.1", 40000);
i notice that the sshserver listens on 127.0.0.1:51000 and not on his interface 192.168.1.2...
Am I using the code in the wrong way?
Thanks in advance.