Kai Blin schreef:
> I'm not really surprised. That's the reason why gethostbyname  is deprecated, 
> if I read MSDN correctly. Anyhow, it looks like Windows doesn't return 
> 127.0.0.1 unless it doesn't have any other IP address to return. Programs 
> can't count on which NIC's IP that will be, though.
>   
Worth noting: Ubuntu resolves hostname to 127.0.1.1 by default, might
want to check for 127/8 explicitly instead of just 127.0.0.1

Maarten


Reply via email to