Obviously this is a name resolution problem.
Use SAM -> Networking -> nsswitch and properly configure it.
Your probably using a default of DNS
In this case, if the loopback is not in the DNS tables gethostbyname() will return nothing.
Same can be true for NIS (but easier to add the loopback/localhost entry)
Simply change your nsswitch.conf file to "continue" to the next method if lookup fails, instead of returning.
Regards,
Shannon
Microsoft. When do you want a virus today?