This project is read-only.

Remote Port Forwarding

Feb 29, 2012 at 3:56 PM
Edited Feb 29, 2012 at 4: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, new()

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>("",51000, "", 40000);

i notice that the sshserver listens on and not on his interface

Am I using the code in the wrong way?
Thanks in advance.





Feb 29, 2012 at 4:47 PM

SOLVED. I just edited the famous line GatewayPorts and set to yes.

I leave open this thread if someone encounter the same problem.