[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
On Wed, 3 Mar 2004, Jeff Abrahamson wrote: > I want to determine my own IP address. *snip* > I bet there's a better way. Anyone know? > > If the box has multiple interfaces, the above fails. Is their a way > to get all the addresses that are me? look at getaddrinfo(3), gethostname(2), gethostid(2) and gethostbyname(3) -dwild ___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug