Can't use as socks tunnel on MAUI application (.net 8)
Open
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 4.4k
- Forks
- 993
- Avg merge
- 9d 21h
- Merged PRs (30d)
- 1
Description
When I trying to use var _port= new ForwardedPortDynamic("127.0.0.1", 5000),
On that's code:
_client = new SshClient(s);
_client.HostKeyReceived += (sender, e) =>
{
e.CanTrust = true;
};
_client.Connect();
_client.AddForwardedPort(_port);
_client.ErrorOccurred += _client_ErrorOccurred;
_port.Start();
I have received exception like "Session operation has timed out".
But when I have used _client.createCommand it's works fine and returns good output.
What's i doing wrong ?
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 with the ForwardedPortDynamic entry point and the SshClient sequence shown: Connect, AddForwardedPort, and Start. Compare that forwarding path with the working CreateCommand call and investigate the reported session timeout; done means identifying the cause and establishing a reliable MAUI .NET 8 SOCKS-tunnel connection.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100