System.Net.Sockets.SocketException in ForwardedPortLocal.StartPort
Nessuno ha ancora preso questa issue.
- Lingua principale
- C#
- Stelle
- 4.4k
- Fork
- 993
- Merge medio
- 9g 21h
- PR unite (30g)
- 1
Descrizione
I have a piece of code that more or less does this:
var forwardedPort = new ForwardedPortLocal("127.0.0.1", (uint)boundPort, "127.0.0.1", (uint)port);
SshClient?.AddForwardedPort(forwardedPort);
forwardedPort.Start();
I often get this exception:
System.Net.Sockets.SocketException (0x80004005): An attempt was made to access a socket in a way forbidden by its access permissions
at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.Sockets.Socket.Bind(EndPoint localEP)
at Renci.SshNet.ForwardedPortLocal.InternalStart()
at Renci.SshNet.ForwardedPortLocal.StartPort()
I wonder if there's anything that I could be doing wrong (doesn't seem at first sight) or if there's anything else going on.
Thanks
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Start with the ForwardedPortLocal.StartPort() and InternalStart() stack frames, then reproduce the bind using the shown ForwardedPortLocal setup. Determine whether the failure comes from the requested local endpoint or library behavior; done means documenting the cause and providing a verified fix or regression test.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- csharp
- Ambito
- networking
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 35/100