23 Sep
2019
23 Sep
'19
2:13 p.m.
On Sun, Sep 22, 2019 at 5:00 PM JH via Boost
socket.bind(boost::asio::ip::tcp::endpoint(boost::asio::ip::tcp::v4(), 12345));
You are using the right function, but you are passing a default-constructed IPv4 address. Why not just pass the local IP address you want to bind to (instead of 0.0.0.0, which is what a default-constructed address gives you). Look at the type of the endpoint parameter in the call to bind: https://www.boost.org/doc/libs/1_71_0/doc/html/boost_asio/reference/basic_so... Regards