You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@mina.apache.org by echo3004 <e....@gmx.net> on 2017/11/08 13:50:44 UTC
Using LocalPortForwarding only working once
Hi,
i am trying to reach a pc through an ssh tunnel. i have an established ssh
Connection between 2 PC, now i want to reach a third pc in an local Network
behind my second PC.
I've tried:
ClientSessionData data =
SshProxyServer.getInstance().findClientSessionDescription( i_address, 22,
false );
data.startForwarding( 4910, "1.1.1.80", 22 );
at this Point everything is fine and i can acces the third PC, now i want to
cut the Connection and reconnect
data.stopForwarding( 4910);
data.startForwarding( 4910, "1.1.1.80", 22 );
^here i get an error "adress already in use", but i cannot understand why ?
in a different case i use
data.startForwarding( 8081, localhost, 8081 );
data.stopForwarding( 8081);
data.startForwarding( 8081, localhost, 8081 );
and everything works fine.
Thanks for helping
echo3004
--
Sent from: http://apache-mina.10907.n7.nabble.com/Apache-MINA-User-Forum-f31345.html