Back to the main site

WINE not load with SETCAP

I’m trying to play Generals Zero Hour online with a friend and on the map loading bit, it looks like we cant connect to each other (only my bar loads on my screen and on his only his bar loads)

I think this might be an ICMP ping issue. After googling I find results about ICMP ping not having correct permissions and we neet to do:

setcap cap_net_raw+epi path/to/wine-preloader
setcap cap_net_raw+epi path/to/wine64-preloader
setcap cap_net_raw+epi path/to/wineserver

But when i did this wine just wouldn’t start and I get this in terminal.

Initial process has started with pid 16836
Game is considered started.
esync: up and running.
wine client error:0: version mismatch 604/607.
Your wineserver binary was not upgraded correctly,
or you have an older one somewhere in your PATH.
Or maybe the wrong wineserver is still running?
Game is considered exited.
Initial process has exited.
All monitored processes have exited.
Exit with returncode 256

When I revert the setcap commands, wine works again. Any ideas?

Thanks,

EDIT: If I edit only the preloader files and not wineserver, I still get that error. But if I edit winserver only, then wine still works but doesn’t make ping work.

EDIT2: The command works on wine that is installed system wide and not stand alone versions like TKG or GE or any of the lutris wine versions. It’s something to do with it can’t find some lib files.

1 Like

Even with ping working. the connection with players online still doesnt work. So that isnt what is going on.