Terminal / Command Prompt
When you use our VPNGUI app in WEB mode (as opposed to OpenVPN mode) most command-line utilities will not use the VPN automatically.
Proxy
Fortunately, when using VPNGUI in WEB mode, it runs a local proxy server that many command-line utilities can use. This proxy runs a 127.0.0.1:16005.
When using the TLS, gRPC or XTLS modes, use 127.0.0.1:16006 instead.
In OpenVPN mode there is no proxy.
Apps
Some command-line apps have their own way to configuring the proxy settings. See our git instructions for example.
Environment variables
Many command-line apps will check the environment variable to see if a proxy should be used. Below commands set the relevant variables for use with VPNGUI.
macOS
export HTTP_PROXY="http://127.0.0.1:16005"
export https_proxy="http://127.0.0.1:16005"
You'll notice that we uppercase HTTP_PROXY but lower-cased https_proxy. This combo works well in our experience, but you may want to use upper- and lower-case version of both if you're unsure what exactly your command-line apps need.
Windows
set HTTP_PROXY=http://127.0.0.1:16005
set HTTPS_PROXY=http://127.0.0.1:16005