Прописать прокси в windows 10 cmd

Assume that you want to set 127.0.0.1:10809 as HTTP proxy and 127.0.0.1:10808 as SOCKS proxy.

How to set a proxy for CMD/Powershell/Terminal/Git

CMD / PowerShell Using netsh

Configure the proxy server manually using netsh command

Tunnel all your internet traffic through a HTTP proxy

netsh winhttp set proxy 127.0.0.1:10809 bypass-list="localhost"

Tunnel all your internet traffic through a SOCKS proxy

netsh winhttp set proxy proxy-server="socks=127.0.0.1:10808" bypass-list="localhost"

View the current proxy settings:

netsh winhttp show proxy

Clear all proxy settings:

netsh winhttp reset proxy

CMD / PowerShell Using Env. Variables

Set

set http_proxy=http://127.0.0.1:10809
set https_proxy=http://127.0.0.1:10809

Unset

set http_proxy=
set https_proxy=

To delete variables for future cmd instances, do this:

setx http_proxy ""
setx https_proxy ""

PowerShell Using Env. Variables

$env:HTTPS_PROXY="http://127.0.0.1:10809"
$env:HTTP_PROXY="http://127.0.0.1:10809"
$env:all_proxy="socks5://127.0.0.1:10808"

Bash

export https_proxy=http://127.0.0.1:10809
export http_proxy=http://127.0.0.1:10809
export all_proxy=socks5://127.0.0.1:10808

Git

Set

git config --global http.proxy http://127.0.0.1:10809
git config --global https.proxy http://127.0.0.1:10809
git config --global http.proxy socks5://127.0.0.1:10808
git config --global https.proxy socks5://127.0.0.1:10808

Show

git config --get --global http.proxy  
git config --get --global https.proxy
git config --get --global http.proxy socks5  
git config --get --global https.proxy socks5

Unset

git config --global --unset http.proxy  
git config --global --unset https.proxy
git config --global --unset http.proxy socks5 
git config --global --unset https.proxy socks5


Readers help support Windows Report. We may get a commission if you buy through our links.

Read our disclosure page to find out how can you help Windows Report sustain the editorial team. Read more

A proxy server diverts your network data to another computer before it reaches its intended destination.

It has multiple benefits, from changing your IP address and geo-location to accessing restricted content.

If you’re looking for a simple way to set global proxy options on your Windows 10 desktop, laptop, or tablet, we’re here to help.

BEST PRICES FOR MARCH 2025

Does Windows have a built-in proxy?

Yes, you have a Windows 10 proxy server integrated and you can set up a proxy using the Network and Internet menu.

This connection can increase your digital security when browsing risky websites and grant you access to region-blocked content.

How do I find my global proxy settings?

You can discover the proxy settings in a few steps by using only the Windows 10 settings panel. However, it’s not possible to use global proxy settings for all applications.

It’s possible to access Proxy Settings on your Windows and use the automatic proxy or set up a manual proxy with a different proxy IP address.

How do I set a global proxy in Windows?

1. Automatic proxy setup

If you have discussed with your ISP or system administrator about using proxy settings or a proxy setup on your Windows 10 PC, here’s what you have to do:

  1. Click the Start button, type proxy, and select Proxy settings.
    access Windows 10 proxy settings from the Start menu

  2. Turn on Automatically detect settings.
    autodetect proxy settings on Windows 10

  3. Or, if you have received a proxy URL, then enable Script Address, paste the URL, and click Save.
    add a proxy script address on Windows 10

In some cases, Windows fails to autodetect proxy settings. But you can easily fix issues by using our troubleshooting guide.

2. Manual proxy setup

If you’re looking for a proxy server that will help you access blocked websites and unblock streaming content, you can look up free proxy server lists on Google.

Here’s how to set it up on your Windows 10 computer:

manually set up proxy settings on Windows 10

1. Go to proxy settings.
2. Turn on Use a proxy server.
3. Specify the Address and Port of the proxy server.
4. If you want to exclude certain websites from the proxy, write them down in the box below.
5. To exclude LAN addresses from the proxy, check the Don’t use the proxy server for local (intranet) addresses option.
6. Click Save.

2.2 Set proxy in windows cmd

  1. Open the Command Prompt by typing cmd in the Start.
    CMD run as administrator

  2. Select the Run as Administrator option.
  3. Type the following command netsh winhttp show proxy
  4. Search the Internet Option and go to the Connections tab.
    Internet options

  5. Find the LAN settings and copy the proxy address.
  6. Import the address in the Command prompt.

If Windows 10 fails in its attempts to connect to the proxy, get started by checking your Internet settings. But there are also other simple solutions you can try.

Read more about this topic

  • Microsoft wants Windows 10 users to upgrade to Windows 11 or Copilot + PCs
  • Deleting ‘inetpub’ folder lets hackers permanently stop Windows updates, Microsoft warns
  • The latest KB5055612 for Windows 10 22H2 brings huge stability to the OS
  • Microsoft April 2025 Patch Tuesday: Fixes for 134 security vulnerabilities, one exploited Zero-Day

3. Use a VPN service

A proxy server has low security and barely works as an Internet circumvention tool. It’s slow, and crowded because it’s used by thousands of other users like yourself, and won’t protect your online privacy.

If you’re a privacy-concerned individual, consider investing in a premium VPN service. Compared to a proxy server, a VPN has superior security and geo-blocking features.

Here are the exact steps for your Windows 10 laptop or desktop:

  1. Sign up for a VPN subscription plan (we recommend ExpressVPN)
  2. Follow the download instructions and install the software on Windows 10.

  3. Launch the VPN client.

  4. Press the big power button to connect.

We suggest using ExpressVPN because it’s the best in the business. It encrypts all data traffic flowing in and out of your PC.

That’s because the desktop client covers all Internet-enabled applications: web browsers, email clients, torrenting clients, Steam games, and everything else.

Plus, if you want to redirect your VPN traffic through a secondary location, you can configure a SOCKS5 proxy without having to resort to a separate software application.

These are two aspects that make Express stand out because Windows 10 doesn’t natively support SOCKS5.

ExpressVPN

Use this reliable VPN instead of a proxy server to encrypt all your data and make yourself anonymous.

How do I set up a proxy script in Windows 10?

In order to set up a script address for proxy on Windows 10, you should access the proxy settings. As discussed below, you can do this task from your settings.

It’s possible to simply type Proxy settings on the Start menu and select the Change proxy settings option that would appear in the results.

To recap, you can easily configure proxy settings on your Windows 10 computer in automatic or manual mode, without having to install any additional software.

However, unless you received explicit instructions from your ISP or system admin, you need to get old proxy connection details from somewhere else.

Instead, we suggest opting for a premium VPN like ExpressVPN. It’s built to protect your online privacy, defend your router from hackers, unblock streaming media that’s not available in your country, and more.

So without a doubt, it is the best VPN for Windows 10.


Elena Constantinescu

Windows Software Expert

Elena started writing professionally in 2010 and hasn’t stopped exploring the tech world since. With a firm grasp of software reviewing and content editing, she is always trying new things to improve her skill set.

Once in a blue moon, she steps aside from the desk to play with her bunny and to water her probably dead plants.


9 Responses

  1. Thanks for guide.

    1. You’re very welcome!

  2. why does my proxy server keep turning on even tho I disabled it?

  3. Geezer, a VPN might be controlling your proxy settings. If you have one, try turning it off. Or, you might have accidentally caught malware. You can try installing and running your computer through MalwareBytes.

  4. What is a script address? I keep hearing about this from people that use proxies often. As far as I know script address for proxy using is necessary. Please correct if wrong.

  5. Thanks, I always found manual proxy configuration quite difficult. Wish there was an automatic proxy setup to use for Windows 10. Maybe someday, right? haha

  6. Gill Bates, a script address is something like an URL. You can enter it, and it will automatically configure the proxy settings for you. It’s not necessary – you can also configure the proxies manually. jr, see above. 🙂

  7. Do proxy features depend on the type of device you use? Is there a best proxy server for Windows and one for MAC? Or maybe there’s proxies that cannot be set up on MAC or vice versa?

    1. Not really, as long as the device supports all the same protocols and the OS doesn’t have any restrictions configured.

  • Set proxy through windows command line including login parameters
  • Set HTTP(s) Proxy in Windows Command Line / Mac Terminal
  • Enable and Configure proxy using CMD
  • Configuring proxy from CMD (Windows)
  • Configure device proxy and Internet connectivity settings
  • Windows: Show Proxy Settings – CMD & PowerShell
  • Using the WinHTTP Proxy Configuration Utility
  • Remove proxy settings from the windows command prompt

Set proxy through windows command line including login parameters

Once the variable HTTP_PROXY is set, all our subsequent commands executed at
windows command prompt will be able to access internet through the proxy along
with the authentication provided. Additionally if you want to use ftp and
https as well to use the same proxy then you may like to the following
environment variables as well.

netsh winhttp set proxy SERVER:PORT



netsh winhttp set proxy user:[email protected]:PORT



set HTTP_PROXY=http://proxy_userid:[email protected]_ip:proxy_port



set FTP_PROXY=%HTTP_PROXY%

set HTTPS_PROXY=%HTTP_PROXY%



netsh winhttp set proxy proxy-server="socks=localhost:9090" bypass-list="localhost"



netsh winhttp show proxy



netsh winhttp reset proxy



reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 1
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer /t REG_SZ /d name:port
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyUser /t REG_SZ /d username
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyPass /t REG_SZ /d password
netsh winhttp import proxy source=ie

Set HTTP(s) Proxy in Windows Command Line / Mac Terminal

Windows Command Line. In Windows Command Line environment (NOT powershell),
you can use below commands to set http and https proxy. set
http_proxy=protocol://ip:port set https_proxy=protocol://ip:port. For example,
if you have a local socks 5 proxy (such as ShadowSocks), commands will be as
below.

set http_proxy=protocol://ip:port
set https_proxy=protocol://ip:port



set http_proxy=socks5://127.0.0.1:1086
set https_proxy=socks5://127.0.0.1:1086



echo %http_proxy%
echo %https_proxy%



set http_proxy=
set https_proxy=



export http_proxy=socks5://127.0.0.1:1086 # Set HTTP Proxy
export https_proxy=socks5://127.0.0.1:1086 # Set HTTPS Proxy
export all_proxy=socks5://127.0.0.1:1086 # Set HTTP & HTTPS Proxy



unset http_proxy 
unset https_proxy

Enable and Configure proxy using CMD

On Windows, one can modify the network settings via commandline by using the
netsh command. For example, changing the proxy works as follows: netsh winhttp
set proxy myproxy or in your scenario: netsh winhttp set proxy
10.10.10.10:1111 Have a look at the detailed documentation here, and at this
superuser thread

netsh winhttp set proxy myproxy



netsh winhttp set proxy 10.10.10.10:1111

Configuring proxy from CMD (Windows)

If you need to access the proxy low level configuration, you will need to use
a CMD Window as Local Administrator and use the netsh interface and use the
following: 1 2 3. netsh winhttp show proxy — to show the current
confiuguration netsh winhttp reset proxy — to delete the current settings
netsh winhttp set proxy <proxyName>:<port> — to set a

1
2
3



netsh winhttp show proxy - to show the current confiuguration
netsh winhttp reset proxy - to delete the current settings 
netsh winhttp set proxy <proxyName>:<port> - to set a new configuration



1
2



set HTTP_PROXY=http://[username:[email protected]]proxyserver:port
set HTTPS_PROXY=https://[username:[email protected]]proxyserver:port

Configure device proxy and Internet connectivity settings

Right-click Command prompt and select Run as administrator. Enter the
following command and press Enter: netsh winhttp set proxy <proxy>:<port> For
example: netsh winhttp set proxy 10.0.0.6:8080. To reset the winhttp proxy,
enter the following command and press Enter: netsh winhttp reset proxy

<server name or ip>:<port>

For example: http://10.0.0.6:8080



netsh winhttp set proxy <proxy>:<port>



netsh winhttp reset proxy



HardDrivePath\MDEClientAnalyzer.cmd



C:\Work\tools\MDEClientAnalyzer\MDEClientAnalyzer.cmd



Testing URL : https://xxx.microsoft.com/xxx
1 - Default proxy: Succeeded (200)
2 - Proxy auto discovery (WPAD): Succeeded (200)
3 - Proxy disabled: Succeeded (200)
4 - Named proxy: Doesn't exist
5 - Command line proxy: Doesn't exist

Windows: Show Proxy Settings – CMD & PowerShell

Proxy settings in Windows can be configured system-wide (for all users of the
same computer) or per-user. In this note i will show how to display system-
wide and user-specific proxy settings in Windows from the command-line (CMD)
and PowerShell. Cool Tip: Check if TCP port is opened in PowerShell! Read more
→. Show Proxy Settings in Windows

C:\> netsh winhttp show proxy


PS C:\> Get-ItemProperty -Path "Registry::HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings"


C:\> reg query "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings"

Using the WinHTTP Proxy Configuration Utility

The WinHTTP proxy configuration utility, proxycfg.exe, configures WinHTTP to
access HTTP and HTTPS servers through a proxy server. Because the
ServerXMLHTTP object depends on WinHTTP proxy settings, an administrator can
use the proxycfg.exe utility as part of the deployment and installation
process of an application that uses WinHTTP.

proxycfg -d -p itgproxy "<local>"  



proxycfg -p itgproxy  



proxycfg -p "http=http_proxy https=https_proxy" "<local>;*.microsoft.com"  

Remove proxy settings from the windows command prompt

set http_proxy= set https_proxy= 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

set http_proxy=
set https_proxy=



npm config delete proxy http

npm config delete proxy https

Once in a while I need to download and install Python packages at work and having switched to Linux (Ubuntu) at home, I find it quite annoying now to have to go to a website, download the package I need, then manually install.

Fortunately, the pip installer works for Windows as well, allowing the installation of Python packages automatically with a simple command (pip install package_name). But at work, we’re behind a proxy server so I have to set the HTTP_PROXY environment variable first before pip can connect to download the packages.

You can set this environment variable permanently so you don’t have to keep re-typing it every time you open a cmd window, but since our proxy requires authentication I prefer not to hardcode it (plus I’ll have to remember to update when my password changes).

Simply type this in the cmd window to set it (note that the setting will get deleted once you close the window):

set HTTP_PROXY=http://user:password@proxy.domain.com:port

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Ustanovit google chrome бесплатно windows 10
  • Реестр windows xp джерри хонейкатт
  • Как поменять название папки пользователя в windows 10 если нельзя поменять
  • Plants vs zombies for windows phone
  • Интересные функции windows 11