Here is my problem: I\'m using boost::asio::ip::tcp::iostream to connect to server:
boost::asio::ip::tcp::iostream s(IP, \"1237\");
And now
Assuming Linux, Use getifaddrs(3) to get a list of interfaces for the local system.