MS WINDOWS UWP APP | Port forwarding with SSH.NET does not work!
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 4.4k
- Forks
- 993
- Avg merge
- 9d 21h
- Merged PRs (30d)
- 1
Description
Hello, everybody,
when i try to create a port forwarding with the following code it does not work (no error, nothing).
So I would be happy if someone had an idea what goes wrong in my code.
Here now my code:
using (var client = new SshClient(conInfo))
{
client.KeepAliveInterval = new TimeSpan(0, 0, 30);
client.ConnectionInfo.Timeout = new TimeSpan(0, 0, 20);
client.Connect();
ForwardedPortRemote port = new ForwardedPortRemote(8888, "127.0.0.1", 443);
client.AddForwardedPort(port);
port.Start();
var dialog = new MessageDialog("Wenn Sie fertig sind mit der Konfiguration schließen Sie bitte diesen Message Dialog!");
await dialog.ShowAsync();
port.Stop();
client.Disconnect();
}
I'm glad for any help.
Greetings
Sven
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported behavior in a Microsoft Windows UWP app using the shown SshClient and ForwardedPortRemote code. Read the ForwardedPortRemote and port lifecycle entry points implicated by the example, then determine why no forwarding occurs; the issue does not name a repository file or test, so completion requires a confirmed cause and a verified forwarding result.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- networking, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100