How to create servers in low ports

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
anto12358
Level 1
Level 1
Posts: 5
Joined: Sun Jan 15, 2012 7:43 am

How to create servers in low ports

Post by anto12358 »

I want my Windows application to be able to listen on any port, but by default only root can create servers on ports <1024. As far as I know authbind doesn't work with Wine (and never will), and I can't redirect packets to a higher port with a firewall rule, because the Windows application (uTorrent) "tells" the other peers which port is listening on.

Making wineserver suid root would work? Is this the cleanest/only way?
anto12358
Level 1
Level 1
Posts: 5
Joined: Sun Jan 15, 2012 7:43 am

Post by anto12358 »

This seems to work:
sudo setcap 'cap_net_bind_service=+ep' /usr/bin/wineserver
sudo setcap 'cap_net_bind_service=+ep' /usr/bin/wine-preloader
Locked