gethostbyname(my_name) and IL2-Sturmovik CONTINUED
Maarten Lankhorst
m.b.lankhorst at gmail.com
Sat Apr 21 03:46:24 CDT 2007
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
More information about the wine-devel
mailing list