Quantcast
Channel: sshnet Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 1026

Closed Issue: PortForwardLocal to all local addresses [1162]

$
0
0
<p>I want to do a PortForwardLocal to &quot;0.0.0.0&quot; or as ive come to know IPAddress.Any, this is to let other computers use the portforward. </p>
<p>&nbsp;</p>
<p>I managed to make this work by doing this:</p>
<p>&nbsp;</p>
<p> IPAddress addr;</p>
<p> if (this.BoundHost == &quot;0.0.0.0&quot;)</p>
<p> {</p>
<p> addr = IPAddress.Any;</p>
<p> }</p>
<p> else {</p>
<p> addr = Dns.GetHostAddresses(this.BoundHost)[0];</p>
<p> }</p>
<p> var ep = new IPEndPoint(addr, (int)this.BoundPort);</p>
<p>&nbsp;</p>
<p>I dont know if this comforms with your code but i would like to see this functionallity in SSH.NET so i posted it as an issue instead of a patch or change.</p>

Comments:

This issue was resolved in latest release


Viewing all articles
Browse latest Browse all 1026

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>