Native Linux Hamachi (ham0) and Wine

Questions about Wine on Linux
Locked
Fincer
Level 1
Level 1
Posts: 8
Joined: Tue Feb 11, 2014 6:08 pm

Native Linux Hamachi (ham0) and Wine

Post by Fincer »

Hi,

Me and a friend of mine want to play Doom (yes, the old one) with a modern ZDL launcher which supports multiplayer via IP. We are planning to use Hamachi to play the game online. My friend is using Windows regularly and I'm using Arch Linux with Wine 1.7.25. However, I'm bit unsure if native Linux Hamachi is supported by Wine. Basically support for ham0 network interface (created by Linux Hamachi) is required. Does Wine provide any support for this interface?

I've tried to look for answer for a while around the web and couldn't see much related topics from recent times.

Thank you for replies!
oiaohm
Level 8
Level 8
Posts: 1020
Joined: Fri Feb 29, 2008 2:54 am

Re: Native Linux Hamachi (ham0) and Wine

Post by oiaohm »

Fincer wine does not have its own network stack. So wine uses the Linux network stack. The fact you are using Linux Hamachi it should work. If you attempted to use Windows Hamachi it would completely fail.

Only some things to consider is that you may need to use a cgroup network namespace to force wine traffic into Hamachi. But this is no different to running other applications with Hamachi. Only trap with wine is wineserver process independent to the main application that will be performing some network operations as requested by the application.

Cgroup network namespaces is basically Linux tech for controlling what interfaces applications can interface with. This is not a wine feature. That the OS can control what network interfaces is visible to applications is very useful tool.
Fincer
Level 1
Level 1
Posts: 8
Joined: Tue Feb 11, 2014 6:08 pm

Re: Native Linux Hamachi (ham0) and Wine

Post by Fincer »

Thank you for answering!

I practically tested Wine with Hamachi on the background. All fine, no extra configuration needed for any network settings. Network gaming works as it does in Windows.
Locked