|
Re: retrieving local ip address: msg#00030lib.boost.asio.user
On 2006-Nov-06, at 11:37 PM, Themistoklis Bourdenas wrote: > How do I you retrieve the IP Address of the local host using asio? > boost::asio::ip::hostname() only returns the host's name but I want an > ip address (not loopback 127.0.0.1). > I have two ethernet interfaces in my computer, each with different IP addresses. Sometimes, one interface on my computer has multiple IP addresses. Which one do you want? An IP address is something that each network interface has. The computer may have multiple interfaces - and the one that you need to use for a connection to a specific host may not be clear until after you connect. --jeffk++ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: memory leak in udp roundtrip example?: 00030, Christopher Kohlhoff |
|---|---|
| Next by Date: | Re: memory leak in udp roundtrip example?: 00030, Charlls Quarra |
| Previous by Thread: | Re: retrieving local ip addressi: 00030, Christopher Kohlhoff |
| Next by Thread: | memory leak in udp roundtrip example?: 00030, Charlls Quarra |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |