How can I overpass the messages that comes through broadcast UDP from self? I need to overpass the udp requests that come from the same server(when sending broadcast). How can I obtain the curent IP address? Here is what I tried, but I get 127.0.1.1 which is not the IP address from the proper interface:
tcp::resolver resolver(mIoService);
tcp::resolver::query query(boost::asio::ip::host_name(), "");
tcp::resolver::iterator iter = resolver.resolve(query);
tcp::resolver::iterator end; // End marker.
Thanks!