Boost C++ Libraries: Ticket #3143: Bug in windows IPv6 address to string conversion https://svn.boost.org/trac10/ticket/3143 <p> I've noticed a bug in Windows 7 where I connect to a server and I print the client's ipv6 address to a log message. The string address that is returned from the following function always has a %11 at the end: </p> <p> address_v6.hpp:124 </p> <blockquote> <p> <em>/ Get the address as a string. std::string to_string() const { </em></p> <blockquote> <p> boost::system::error_code ec; std::string addr = to_string(ec); boost::asio::detail::throw_error(ec); return addr; </p> </blockquote> <p> } </p> </blockquote> <p> Example return value: fe80::8ced:2b49:90d5:7c3b%11 </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3143 Trac 1.4.3 chris_kohlhoff Fri, 26 Jun 2009 13:52:33 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/3143#comment:1 https://svn.boost.org/trac10/ticket/3143#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">invalid</span> </li> </ul> <p> It looks like your address has an IPv6 scope id. </p> Ticket