You may only need the environment or the command-line parameter to force Discord to use a proxy. It doesn't hurt to use both
So if you're behind a firewall and need to go through, e.g. an SSH dynamic port forward (a SOCKS5 channel inside an SSH session) you can use the following:
$ nohup ssh -D1080 proxy_server &
$ http_proxy=socks5://127.0.0.1:1080 https_proxy=socks5://127.0.0.1:1080 /opt/Discord/Discord --proxy-server="socks5://127.0.0.1:1080"
If you use some window manager in Xorg and it uses the .desktop
style launch configurations (Xfce and probably others) using the following will accomplish the same thing for the context-menu / button launch:
$ cat .local/share/applications/discord.desktop
[Desktop Entry]
Name=Discord
StartupWMClass=discord
Comment=All-in-one voice and text chat for gamers that's free, secure, and works on both your desktop and phone.
GenericName=Internet Messenger
Exec=env http_proxy=socks5://127.0.0.1:1080 https_proxy=socks5://127.0.0.1:1080 /opt/Discord/Discord --proxy-server="socks5://127.0.0.1:1080"
Icon=discord
Type=Application
Categories=Network;InstantMessaging;
Path=/tmp
The proxy URI can also be http://
, https://
and possibly socks4://
, socks4a://
or socks5h://
though I have not tested these
I can start Discord with this, but sadly, voice chat does not work