I am trying to install Metatrader under Wine. The program setup continually requests proxy settings. My broker tells me this shouldn't happen, and is a problem on my end. Here is what I have tried to attempt to solve this error:

  • I have gone into Network settings and proxy is set to none.
  • I have looked in Wine Regedit and proxy_enable is set to 0.
  • I have checked the firewall settings on my modem.
  • I have tried reinstalling wine.
  • I have installed lib32nss-mdns
  • I can log on to my modem in iexplore using the gateway ip but thats it I've set my DNS to to reflect the gateway I've set up a 32 bit Wine prefix

How should I proceed in solving this?

  • I see they have in the instruction a command for installing 1.5 version. I hope you didn't install that version? Because it's really ancient, nowadays you'd rather use at least 1.7 or 1.8.
    – Hi-Angel
    Feb 12, 2016 at 7:30
  • 1
    Appdb says it's enough to install libgnutls28:i386 package. But I tried to test it, and for me that didn't work (wine-1.9.2 btw). As it is worked before, guess they changed something which broke their executable in wine. You can either report a bug to wine team, or — which is better — report the bug to the brokers, because since they decided to support Ubuntu not with building a separate executable, but rather with Wine, then the burden of resolving Wine bugs is on their shoulders.
    – Hi-Angel
    Feb 12, 2016 at 8:04
  • Tried installing libgnutls28:i386 but still no luck. I now have Metatrader installed in XP under Virtual Box. I'll tray again with Wine after the next update. Installed from the 15.10 Ubuntu repo. Thanks for the suggestions.
    – Allan
    Feb 14, 2016 at 7:00
  • bbs.archlinux.org/viewtopic.php?id=250393 - permissions mentioned Jan 2, 2021 at 1:07

5 Answers 5


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.


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 [] 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 [] with 32 bytes of data:
Reply from bytes=32 time=28ms TTL=115
  • 1
    Did you ever find a resolution to this? Same problem here.
    – The Driver
    Mar 3 at 17:47
  • 1
    Unfortunately no, I didn't. Mar 3 at 20:12

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.

  • 1
    I don't think it's a "newbie problem". I'm having the same issue, and if I'm running ubuntu 16.04 I expect "sudo apt-get install wine" to get a recent version of wine that will work on Ubuntu 16.04. If it gets an older/broken version, something is wrong in Ubuntu as a distribution.
    – matteo
    Sep 16, 2017 at 20:24

I have just installed Metatrader 4 on Lubuntu 16.04 with wine 1.9.16. Internet issue is solve by installing winbind:

sudo apt install winbind

It should help for any other version of Ubuntu.

Winbind is a component of the Samba suite of programs that solves the unified logon problem. Winbind uses a UNIX implementation of Microsoft RPC calls.

  • 2
    didn't change a thing.
    – matteo
    Sep 16, 2017 at 20:19

Consider seting raw network permissions.

sudo setcap cap_net_raw+epi <wine_executable_path>

To get wine executable path:

$ ls -la `which wine64-stable`
lrwxrwxrwx 1 root root 18 Apr 20  2020 /usr/bin/wine64-stable -> ../lib/wine/wine64

Use this path:

sudo setcap cap_net_raw+epi /usr/lib/wine/wine64

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.