On Fri, Oct 19, 2001 at 12:11:06PM +0200, Stephan Witt wrote: > > How do you get "The IP-address" of some machine? > > This logic is flawed. > > You need the IP-address of your own machine to
My machine can have any number of IP adresses, including 0, 1, and 42. So which is the "right" one? > I know, this is not really robust. One have to use gethostbyname_r > to be reentrant, avoid inet_ntoa and so on. But the idea is like that. Maybe it would even help in most cases, but so does some alias or wrapper script... Andre' -- André Pönitz .............................................. [EMAIL PROTECTED]