Playing wine games with hamachi?

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
McFlow
Level 2
Level 2
Posts: 10
Joined: Mon May 05, 2008 8:26 am

Playing wine games with hamachi?

Post by McFlow »

Hello Wine Users,
I know that my question has already been posted once.But that thread did not really help me. Maybe I did something wrong :roll:

This is the situation:
I am using wine-1.1.10.
I want to play "The Lord of the Rings: The Battle for Middle Earth - The Rise of the Witchking" with wine in a hamachi VPN.
I am online in the hamachi network and other people see me in hamachi as well. Pinging their hamachi ip in the command line works as well.
The problem actually is, that the multiplayer mode of the game shows every player. I can see myself in the list twice. The messages other players send are displayed properly but they do not see me in the ingame playerlist nor can they read my messages. When I wanted to enter open games I got "connection timeout". My games were not seen by others.

I went to the options menu of the game and saw that it showed an IP that does not belong to me. It was 127.12.34.56. I looked up that ip and found a bug report that lead me to this article in the wine wiki. Some further researches told me, that wine does not use the ham0 interface if the command "hostname -i" displays another IP than my hamachi IP.

So I edited my /etc/hosts file to:

Code: Select all

5.129.248.91 rechensklave #my hamachi ip, my machines name
Now hostname -i returns my hamachi IP.
I went to the network multiplayermode again and now I did not see any other players. But in the list my name only appeared once. The networksettings of the game returned my hamachi IP, as well.
I don't know if this is a hamachi issue, a problem with wine, or simply a problem with my brain. I would appreciate any advices...
Thanks in advance :)
jorl17
Level 5
Level 5
Posts: 365
Joined: Mon Jul 28, 2008 6:44 pm

Post by jorl17 »

Hi.

I don't know how that specific game works, but I've been using hamachi just fine with AoEIII.

What I had to do though was edit a file that 'told' AoE which was my ip. Maybe a 'google' for such a file for your game would reveal it.

I don't know for sure if it exists, but it might help you.

Jorl17
McFlow
Level 2
Level 2
Posts: 10
Joined: Mon May 05, 2008 8:26 am

Post by McFlow »

Hi Jorl17,
Such a file exists, indeed.
But it does not matter what IP i enter there it won't take effect on the IP that the game returns in the options menu. It seems that the ip is taken from the /etc/hosts file.
I think the game seems to be in two networks. My local lan and the hamachi vpn because my name is written in the list two times.
However, it seems not to work with my game. I might try it with openvpn. Maybe this works better.

McFlow
Capla
Newbie
Newbie
Posts: 1
Joined: Mon Feb 23, 2009 2:40 am

Post by Capla »

hey McFlow, this theme is actually important for me now )) Me and my friend have the same problem in Command & Conquer 3 Kane's Wrath if you still there (or somebody else) please, tell us how did you fix it??? :(
I have XP on my PC, my friend using Linux Gentoo. we make a Banned Topic in hamachi, enter it. We pinging each other good but in the game I don't see him... and he sees me and my chat well
McFlow
Level 2
Level 2
Posts: 10
Joined: Mon May 05, 2008 8:26 am

Post by McFlow »

Capla wrote:hey McFlow, this theme is actually important for me now )) Me and my friend have the same problem in Command & Conquer 3 Kane's Wrath if you still there (or somebody else) please, tell us how did you fix it??? :(
I have XP on my PC, my friend using Linux Gentoo. we make a Banned Topic in hamachi, enter it. We pinging each other good but in the game I don't see him... and he sees me and my chat well
I did not fix it... For "The Battle for Middle Earth 2" there is a multiplayer bug. It does not work...
jorl17
Level 5
Level 5
Posts: 365
Joined: Mon Jul 28, 2008 6:44 pm

Post by jorl17 »

Same thing here, C&C3: Red Alert, I started a seperate topic already.
Ghotcom
Newbie
Newbie
Posts: 3
Joined: Thu Mar 12, 2009 9:24 am

Post by Ghotcom »

Hey folks

How do I know my hamachi ip to begin with ? I can t seem to figure out how to retrieve it..already checked in the hamachi s README for commands, but none appears to do this.
Ghotcom
Newbie
Newbie
Posts: 3
Joined: Thu Mar 12, 2009 9:24 am

Post by Ghotcom »

lol Nevermind, ifconfig returned it to me.

Now the game is configured with the hamachi network ip of my host...However I can t see the other peers online in the room yet

Any idea ?
Locked