Note that there are some explanatory texts on larger screens.

plurals
  1. POGetting .net remoting to support IP v4 and v6: how to get a stream mapped to a real ip, not just an argument exception
    text
    copied!<p>My company has an existing .Net Remoting service exposing interfaces to external processes. I am configuring this service to support both IP v4 and IP v6 communications by having the following app.config section:</p> <pre><code> &lt;system.runtime.remoting&gt; &lt;application&gt; &lt;service&gt; &lt;wellknown mode="Singleton" type="type, dll"objectUri="exposedname.rem" /&gt; &lt;/service&gt; &lt;channels&gt; &lt;channel name="tcpclient" ref="tcp" encryption="EncryptAndSign"&gt; &lt;clientProviders&gt; &lt;formatter ref="binary" /&gt; &lt;/clientProviders&gt; &lt;/channel&gt; &lt;channel ref="tcp" name="tcp6" port="9000" bindTo="[::]" encryption="EncryptAndSign"&gt; &lt;clientProviders&gt; &lt;formatter ref="binary" /&gt; &lt;/clientProviders&gt; &lt;/channel&gt; &lt;channel ref="tcp" name="tcp4" port="9000" bindTo="0.0.0.0" encryption="EncryptAndSign"&gt; &lt;clientProviders&gt; &lt;formatter ref="binary" /&gt; &lt;/clientProviders&gt; &lt;/channel&gt; &lt;/channels&gt; &lt;/application&gt; &lt;customErrors mode="off"/&gt; &lt;/system.runtime.remoting&gt; </code></pre> <p>The above config file section gets the remoting service responding to non-stream functions on both ip v4 and ip v6. Any time a function tries to send or receive a stream, however, the following ArgumentException is thrown:</p> <pre><code> IPv4 address 0.0.0.0 and IPv6 address ::0 are unspecified addresses that cannot be used as a target address. Parameter name: hostNameOrAddress </code></pre> <p>Is there a way to modify the app.config so that the service will return a stream mapped to a real ip and still support ip v4 and ip v6? Is this not possible in .net remoting?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload