returns a rather useless structure
(the only IP address is 127.0.01).
Thus, when I bind() a socket to it,
the following connect() fails with EINVAL.
(On Cygwin and Solaris gethostbyname() returns the real IP address.)
1. what do I do to get the real IP address of the localhost?
(I am not the admin on this linux box, so I cannot edit /etc/hosts)
2. why do I need to bind() the socket at all?
it appears that just removing the bind() call solves the problem on linux!