how to get local ip address using boost::asio
18 Jun
2007
18 Jun
'07
1:07 a.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.
6360
Age (days ago)
6360
Last active (days ago)
0 comments
1 participants
participants (1)
-
Sergey Nikulov