Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove proxy settings from the windows command prompt

I had set proxy settings in cmd when I was in a proxy network as follows:

set http_proxy=http://username:pass@hostname:port

set https_proxy=https://username:pass@hostname:port

Now that I am on a normal network I want to unset the proxy settings in the command prompt.Is there any direct command that would let me unset the http_proxy and https_proxy environment variables directly for the command line rather that navigating through the GUI to delete them?

like image 408
ant_1618 Avatar asked May 22 '15 21:05

ant_1618


People also ask

What does netsh Winhttp reset proxy do?

C:\Windows\system32>netsh winhttp reset proxy Current WinHTTP proxy settings: Direct access (no proxy server). This command will reset your proxy settings and as you can see by the output, they will be set to "no proxy server." You can also type netsh winhttp show proxy to see what your current settings are.

How do I find my proxy settings in terminal?

If you open a terminal and use the command set | grep -i proxy you would see the relevant environment variables set. Ideally this should be enough.


2 Answers

try,

set http_proxy= set https_proxy= 
like image 115
user5589186 Avatar answered Sep 23 '22 02:09

user5589186


From an elevated command prompt (CMD or PS) type:

netsh winhttp reset proxy

This should produce:

C:\Windows\system32>netsh winhttp reset proxy Current WinHTTP proxy settings: Direct access (no proxy server).

This command will reset your proxy settings and as you can see by the output, they will be set to "no proxy server."

You can also type netsh winhttp show proxy to see what your current settings are.

like image 34
G_Style Avatar answered Sep 21 '22 02:09

G_Style