<p>I want to do a PortForwardLocal to "0.0.0.0" or as ive come to know IPAddress.Any, this is to let other computers use the portforward. </p>
<p> </p>
<p>I managed to make this work by doing this:</p>
<p> </p>
<p> IPAddress addr;</p>
<p> if (this.BoundHost == "0.0.0.0")</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> </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:
<p> </p>
<p>I managed to make this work by doing this:</p>
<p> </p>
<p> IPAddress addr;</p>
<p> if (this.BoundHost == "0.0.0.0")</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> </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