Boost C++ Libraries: Ticket #2875: Windows: ip::tcp::acceptor::local_endpoint() cannot be used in socket connect https://svn.boost.org/trac10/ticket/2875 <p> On linux the local_endpoint() function returns an endpoint similar to 0.0.0.0:1234. A socket which is given this endpoint to connect to will connect successfully. A similar endpoint is returned on Windows, however the socket connection is not successful. </p> <p> I am currently working around this problem by inserting loopback as the address to connect to. For the sake of consistency between platforms it may be worthwhile including a similar substitution within the socket's connect operation if 0.0.0.0 is detected. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2875 Trac 1.4.3 chris_kohlhoff Thu, 09 Apr 2009 13:05:18 GMT status, type, milestone changed https://svn.boost.org/trac10/ticket/2875#comment:1 https://svn.boost.org/trac10/ticket/2875#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> <li><strong>type</strong> <span class="trac-field-old">Bugs</span> → <span class="trac-field-new">Feature Requests</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">Boost 1.39.0</span> → <span class="trac-field-new">To Be Determined</span> </li> </ul> <p> Actually the POSIX behaviour when using INADDR_ANY in a connect() operation is to connect to a server listening on any local interface. Mimicking this behaviour for consistency may be possible but is non-trivial. I am going to change this to a feature request to be considered in the future. </p> Ticket