how to get local ip address using boost::asio

17 Jun
2007
17 Jun
'07
7:07 p.m.
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.
6576
Age (days ago)
6576
Last active (days ago)
0 comments
1 participants
participants (1)
-
Sergey Nikulov