Boost logo

Boost Users :

From: Sergey Nikulov (sergey.nikulov_at_[hidden])
Date: 2007-06-17 21:07:39


Hi All,

I'm looking for possibility to get my local ip address (not loopback) using
boost::asio.
Is it possible?

I'm trying to use
local_address_ = socket_.local_endpoint().address();
right after I connect to remote server, but it always return "127.0.0.1" as
result.

Could you please point me to information how to get address of my network
card?

Thank you.



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net