How can I configure JSch client to communicate using network interface other than default one?
2 に答える
2
You can implement the SocketFactory interface to create a custom socket with a specified source interface, and then use session.setSocketFactory(...)
to plug it into your JSch session.
于 2012-08-28T03:48:06.497 に答える
0
I do not think that it is possible. I have the same requirement and checked the source code provided along with JSch. The plain Socket is created without a local address or port.
于 2012-07-13T13:00:00.630 に答える