How to Set Proxy Server to Work from the Command Line [Duplicate]

I have set up my proxy server so that it works through the browser ( in firefox: edit > preferences > advanced < network < settings ).

I also got it working from the command line ( in system settings: network < network proxy ) which has been working fine for the last few weeks.

Suddenly connecting to the internet through the command line has stopped working but connecting through the browser still works fine.

Does anyone know why this could happen and how to fix it? Surely if I can access the internet through the browser, why can't I from the command line?

Many thanks.

0

Not sure what might have happened to your system, but you may be interested in setting those in your terminal/command line:

export http_proxy=""
export https_proxy=""

Then run the

sudo apt-get update

You can actually check what shows:

echo $http_proxy

(btw - you may use this way for ftp_proxy, too)

1
Alexander Ross

Alexander Ross

Gaming, Esports & Interactive Media Writer

Alexander Ross has covered the video game industry for a decade, writing deep dives on game design, esports tournaments, VR developments, and gaming culture.

Share this article
Twitter Facebook Pinterest