LAN IP Conflict using WINE in MAC

Questions about Wine on macOS.
Locked
General Yazi
Newbie
Newbie
Posts: 1
Joined: Fri Apr 17, 2015 6:56 am

LAN IP Conflict using WINE in MAC

Post by General Yazi »

Dear fellows,

Although I am too old using MAC, Linux and Wine, but this time I am badly stuck so need professionals and experts opinions.

Here I am going to attach two ScreeenShots.

Actually I want to run C&C Generals Zero Hour game in my MAC, so for that I installed wine and installed game with patch. And its working but when I want to try to play on LAN then the problem occurred because my other colleagues are using Windows OS so we are total four colleagues. Three Windows User and one MAC which is me.

So please guide me that why I am getting this conflict because if others check there LAN IP on Windows OS then its working perfectly.

Need excellent solution from you all please. And excellent answer which can solve my matter will be honored by hats-off.

Waiting for your response anxiously.

regards

Ayaz Muhammad Hanif
Attachments
Now check here the LAN Ip address which is 127.12.34.56
Now check here the LAN Ip address which is 127.12.34.56
Check my IPv4 address which is 192.168.1.10
Check my IPv4 address which is 192.168.1.10
User avatar
olivierfrdierick
Level 5
Level 5
Posts: 258
Joined: Thu Sep 13, 2012 12:09 pm

Re: LAN IP Conflict using WINE in MAC

Post by olivierfrdierick »

Advice from the AppDB:
At first had problem with getting LAN IP to show up under settings. Game showed it was using a 127 address. Commented out most entries in /etc/hosts except: 192.168.0.x . Then it showed correct IP.
This was for Wine 1.7.28. First, upgrade to latest development release (1.7.41) if you're not using it.
Then, check if your hosts file contains a 192.168.1.10 entry, add it if it is missing.
If it still doesn't work, move the 192.168.1.10 line to the begining of the hosts file and comment all other lines in the hosts file.
Example instructions on how to modify the hosts file is provided in the link below.

Note 1: Commenting lines in the hosts file may break your network connectivity for other apps. You'll have to restore the hosts file to its default state when you're not playing.

Note 2: You're using DHCP to get your IP address. This means that the IP may change and you'll have to edit your hosts file to match the new IP address when it does.

Links: WineHQ - Command & Conquer: Generals Zero Hour: 1.04, How to edit the hosts file in Mac OS X - Leopard
Locked