Hello<div><br></div><div>I am trying to start an mpi server program on a particular port (so that other programs might connect later).</div><div>I am using MPI_Info to setport  key-value, like this</div><div><br></div><div>
<div>        MPI_Info info;</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>if(MPI_SUCCESS!=MPI_Info_create(&amp;info))</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>printf(&quot;err&quot;);</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>...</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>MPI_Info_set(info,&quot;port&quot;,&quot;11555&quot;);</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>...</div>
<div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>if(MPI_SUCCESS!=MPI_Open_port(info, port_name))</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>printf(&quot;err&quot;);</div>
</div><div>        ...</div><div><div>        MPI_Info_get(info,&quot;port&quot;,0,buf1,&amp;len);</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>printf(&quot;%s\n&quot;,buf);</div><div>           ...</div>
<div>        printf(&quot;server available at %s\n&quot;,port_name);</div></div><div><br></div><div>And server opens a random port every time, perhaps i am doing something wrong (i must be missing something). :</div><div>
<br></div><div>server available at tag#0$description#192.168.1.4$port#60184$ifname#192.168.1.4$</div><div><br></div><div>Any advice is greatly welcome!</div><div><br></div><div>Eugene</div>