No internet in WINE 1.6.2 under Ubuntu 15.10

Solution 1:

You need to install winhttp.dll, the following command would work:

winetricks winhttp

If any 404 error occurs when downloading W2KSP4_EN.EXE, try manually downloaded this file from the Wayback Machine here. and put it under $HOME/.cache/winetricks/win2ksp4/, Then rerun winetricks winhttp.

EDIT: Some people are having trouble with the Wayback Machine link. Another source is this from the Free University of Berlin FTP Archives.

Solution 2:

I'm having a similar issue in Ubuntu 20.04 with another application. It can't connect to the internet.

This forum on winehq has some tips.

I've tried this (from @Serg comment), but didn't work for me:

sudo setcap cap_net_raw+epi <wine_executable_path>

On my case, I noticed that running wine with sudo solved my problem. But, I know this is not recommended, because of security issues.

wine cmd
Microsoft Windows 5.2.3790

Z:\home\helesto>ping www.google.com

Pinging www.google.com [142.250.78.228] with 32 bytes of data:
Request timed out.
sudo wine cmd
Microsoft Windows 6.1.7601

Z:\home\helesto>ping www.google.com
Pinging www.google.com [142.250.78.228] with 32 bytes of data:
Reply from 142.250.78.228: bytes=32 time=28ms TTL=115

Solution 3:

Turned out to be a real newbie problem, a little embarrassing. I hadn't added the correct repo and was installing from an old repo. (Ubuntu 12.04 I think). Added the winehq repo and reinstalled. All working fine now. Was wondering why I was only getting 1.6.2.