[Bug 13246] Emperor - Rise of the middle kingdom detects wrong interface IP

wine-bugs at winehq.org wine-bugs at winehq.org
Fri May 16 03:39:42 CDT 2008


http://bugs.winehq.org/show_bug.cgi?id=13246





--- Comment #4 from Kai Blin <kai.blin at gmail.com>  2008-05-16 03:39:42 ---
(In reply to comment #3)

> anyways windows has the loopback entry in its hosts file too and only the
> loopback entry.
> so something is not behaving as it should

That's because Windows generally ignores the host file and gives you the IP
address of the last interface that came up, whereas Unix systems always check
the hosts file. This is very, very hard to work around and also only creates
problems for applications that use gethostbyname( gethostname() ) to figure out
their IP address, which is a bad idea even on Windows machines, as this will
break if you have a multihomed host and the interface you don't want to use
came up last.


-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list