Skip to content

Instantly share code, notes, and snippets.

@Colk-tech
Last active June 10, 2026 10:14
Show Gist options
  • Select an option

  • Save Colk-tech/157fd6c81032dde528d3a22434b8f3e6 to your computer and use it in GitHub Desktop.

Select an option

Save Colk-tech/157fd6c81032dde528d3a22434b8f3e6 to your computer and use it in GitHub Desktop.
discord-with-proxy
#!/bin/sh
/Applications/Discord.app/Contents/MacOS/Discord --proxy-server=http://po.cc.ibaraki-ct.ac.jp:3128
@MdNihal05

Copy link
Copy Markdown

Hello
I use Linux ( Linux 6.5.0-kali3-amd64 ) Gnome version 44.1
How can i use discord using proxy ( with my credentials provided by college )

@hdrover

hdrover commented Oct 29, 2024

Copy link
Copy Markdown

Another solution for Windows: https://github.com/hdrover/discord-drover
A DLL for forcing Discord to use a specified proxy (HTTP/SOCKS5) for TCP connections. Bypasses local restrictions on voice chats.
Run the program and fill in the proxy settings, then click Install to automatically place the necessary files in the correct folder.

@Shmookoff

Copy link
Copy Markdown

Is there any way to pass the username and password for protected proxies?

@runetfreedom

Copy link
Copy Markdown

Good solution for Windows is https://github.com/runetfreedom/discord-voice-proxy

You can redirect all Discord traffic to a socks5 proxy (including webrtc).

Password auth is also supported.

@businada

Copy link
Copy Markdown

Hello, is there a version for macos ?

@J-gif-alt

Copy link
Copy Markdown

hi fellows, I need some head like right now, dw I'm 18... hehehhehehe

@Ockidokki

Copy link
Copy Markdown

is there a version for linux

@JkktBkkt

JkktBkkt commented Jun 8, 2025

Copy link
Copy Markdown

@Ockidokki

is there a version for linux

non-flatpak version seems to respect --proxy-server=x.x.x.x:yy format with the server accepting http/https connections on the port

@alexey-sh

Copy link
Copy Markdown

works fine with


{
  "chromiumSwitches": {},
  "IS_MAXIMIZED": false,
  "IS_MINIMIZED": false,
  "WINDOW_BOUNDS": {
    "x": 128,
    "y": 59,
    "width": 1280,
    "height": 720
  },
  "SKIP_HOST_UPDATE": true
}

But fails with SKIP_MODULE_UPDATE

@Hashbrown777

Copy link
Copy Markdown

is there a version for linux

On linux you can run apps in a namespace and have that network only access the internet via whatever you like.
For future reference with apps that do not respect proxying

@biggerevil

biggerevil commented May 26, 2026

Copy link
Copy Markdown

worked for me (macOS, zsh)

env https_proxy="http://127.0.0.1:8086" /Applications/Discord.app/Contents/MacOS/Discord

@Maple38

Maple38 commented Jun 1, 2026

Copy link
Copy Markdown

Here's the best way to do it on macOS!

The simple way is by using a terminal and running:

HTTPS_PROXY="http://proxy_address" 
/Applications/Discord.app/Contents/MacOS/Discord --proxy-server="http://proxy_address"

The first line sets the environment, which is crucial for the updater to work natively — and the second line just launches Discord with the native proxy parameter.

But there's a better way!
Now, to make it even better, you can have it run without relying on a terminal either. Just launch Automator, create a new file of type "application", and add a "run shell script" action. There, add the following:

export HTTPS_PROXY="http://proxy_address" 
nohup /Applications/Discord.app/Contents/MacOS/Discord --proxy-server="http://proxy_address" > /dev/null 2>&1 &

This will run it without actually spawning a terminal window. Now, just save the workflow. By default it'll be in ~/Library/Services — you can just drag it to your dock, and run it easily at any time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment