http://bugs.winehq.org/show_bug.cgi?id=13246
Summary: Emperor - Rise of the middle kingdom detects wrong interface IP Product: Wine Version: 1.0-rc1 Platform: Other OS/Version: other Status: UNCONFIRMED Severity: normal Priority: P2 Component: winsock AssignedTo: wine-bugs@winehq.org ReportedBy: maci@satgnu.net
when i try to play a LAN game with Emperor - Rise of the Middle kingdom it wouldnt work at all, when i go to the options tab where one can select the interface for langames it shows my public ip correctly but the private ip is always shown as 127.12.34.56 also the "set interface" option where one can select another interface to be used does not work at all. tho the dialog shows all my interfaces and their ips correctly but the first entry in the list "Default" has an empty ip
the only output i get is: fixme:wininet:InternetGetConnectedState always returning LAN connection.
http://bugs.winehq.org/show_bug.cgi?id=13246
--- Comment #1 from Juan Lang juan_lang@yahoo.com 2008-05-15 18:01:19 --- How do you know it's a winsock bug?
http://bugs.winehq.org/show_bug.cgi?id=13246
--- Comment #2 from Kai Blin kai.blin@gmail.com 2008-05-15 18:14:47 --- The 127.12.34.56 IP you see is us trying to work around your distro giving a loopback address for your hostname, which some windows games don't like. Try changing your /etc/hosts file to point to your network IP instead.
http://bugs.winehq.org/show_bug.cgi?id=13246
--- Comment #3 from Marcel W. Wysocki maci@satgnu.net 2008-05-16 03:17:20 --- ok, adding ip hostname to /etc/hosts
worked fine.
anyways windows has the loopback entry in its hosts file too and only the loopback entry. so something is not behaving as it should
http://bugs.winehq.org/show_bug.cgi?id=13246
--- Comment #4 from Kai Blin kai.blin@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.
http://bugs.winehq.org/show_bug.cgi?id=13246
--- Comment #5 from Marcel W. Wysocki maci@satgnu.net 2008-05-16 03:56:58 --- i see, yet the bug remains that you cant select another interface to use
http://bugs.winehq.org/show_bug.cgi?id=13246
--- Comment #6 from Juan Lang juan_lang@yahoo.com 2008-05-20 13:31:00 --- Is there a demo version available? If so, does it exhibit the same behavior? Where can it be downloaded?
http://bugs.winehq.org/show_bug.cgi?id=13246
Juan Lang juan_lang@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |juan_lang@yahoo.com URL| |http://downloads.gamezone.co | |m/demosfiles/t9808.htm Severity|normal |minor Status|UNCONFIRMED |RESOLVED Keywords| |download Resolution| |INVALID
--- Comment #7 from Juan Lang juan_lang@yahoo.com 2008-05-20 14:34:34 --- Okay, I found a downloadable demo. The one on the Sierra website is missing.
You say that you can't select another interface to use. These are the steps I use: 1. Choose 'Multiplayer Scenarios' at the main menu 2. Click the 'Other Multiplayer' button 3. Select the 'Options' tab 4. Click the 'Choose Network Adapter...' button
As you say, the first entry in the dialog that comes up has name '<Default>' and an empty IP address. I'm not sure that's a bug--does it do the same on Windows?
The next entries have names of '<unknown>', and the correct IP address of each adapter. I have two Ethernet adapters, and each is listed. The loopback adapter is not listed.
I can select either of the Ethernet adapters and click the 'Activate' button.
So I think your original bug, detecting the wrong interface IP, was the result of a bad configuration. I can't reproduce not being able to select a different interface.
The '<unknown>' adapter name is a bug, but a minor one. Unfortunately there's no iphlpapi component: it's a result of the Description field being left empty in GetAdaptersInfo.
http://bugs.winehq.org/show_bug.cgi?id=13246
Juan Lang juan_lang@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |UNCONFIRMED Resolution|INVALID | Summary|Emperor - Rise of the middle|Emperor - Rise of the middle |kingdom detects wrong |kingdom shows name <Unknown> |interface IP |for each network adapter
--- Comment #8 from Juan Lang juan_lang@yahoo.com 2008-05-20 14:36:03 --- Oops, didn't mean to close it just yet. Changing summary to match the actual bug.
http://bugs.winehq.org/show_bug.cgi?id=13246
Juan Lang juan_lang@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1
--- Comment #9 from Juan Lang juan_lang@yahoo.com 2008-05-20 14:40:11 --- Patch sent: http://www.winehq.org/pipermail/wine-patches/2008-May/055010.html
http://bugs.winehq.org/show_bug.cgi?id=13246
--- Comment #10 from Marcel W. Wysocki maci@satgnu.net 2008-05-20 15:44:44 --- i can click the other interfaces as well.. but on the main lan game screen you can see the interface which is currently active for the game.. the changes dont apply
http://bugs.winehq.org/show_bug.cgi?id=13246
--- Comment #11 from Juan Lang juan_lang@yahoo.com 2008-05-20 17:13:40 --- That's the case in Windows too, I just checked. I also checked the '<Default>' entry in Windows: it also has an empty IP address. So the only bug left is that adapters have a name of '<Unknown>' in Wine, for which I've sent a patch.
Please don't waste our time with bogus complaints. A behavior is only a bug if it behaves differently in Wine than in Windows.
http://bugs.winehq.org/show_bug.cgi?id=13246
Juan Lang juan_lang@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #12 from Juan Lang juan_lang@yahoo.com 2008-05-21 10:25:54 --- This is fixed in today's git, update or wait for 1.0rc2.
http://bugs.winehq.org/show_bug.cgi?id=13246
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #13 from Alexandre Julliard julliard@winehq.org 2008-05-23 10:38:05 --- Closing bugs fixed in 1.0-rc2.