coreproxies.com

Home / Help Center / How to test a proxy on Windows

How to Test a Proxy on Windows

Windows 10 and 11 include two tools that can test a proxy without installing anything: curl.exe and PowerShell. This guide covers both, plus the system proxy settings.

4 min readWindows

Before you start

Open Windows Terminal or PowerShell from the Start menu. Wherever a command shows HOST, PORT, USERNAME or PASSWORD, type the value from your dashboard instead. Step 4 covers rotation and sticky sessions as they work on Residential, Unlimited Residential and Rotating Mobile; Datacenter and ISP orders get their rotating, sticky or static lines from the Proxy generator of the order.

Note your own address first, so you can recognise a request that did not go through the proxy. In a browser, the My IP tool shows the same address together with its country:

curl.exe "https://api.ipify.org?format=json"

1. Check that the port is reachable

Test-NetConnection opens a TCP connection to the proxy and reports the result. It does not test your credentials, only the network path:

Test-NetConnection HOST -Port PORT

TcpTestSucceeded : True means your network allows the connection. False points to a firewall, security software or a wrong port.

2. Test with curl.exe

curl ships with Windows 10 version 1803 and later. In Windows PowerShell 5.1 the bare word curl is an alias for Invoke-WebRequest, so always type curl.exe:

# HTTP(S) proxy
curl.exe -x "http://HOST:PORT" -U "USERNAME:PASSWORD" "https://api.ipify.org?format=json"

# SOCKS5 (same host and port on Residential and the mobile plans)
curl.exe -x "socks5h://USERNAME:PASSWORD@HOST:PORT" "https://api.ipify.org?format=json"

A working proxy returns an address other than your own, for example {"ip":"203.0.113.24"}. Add -v to see the exchange with the proxy when something fails.

3. Test with PowerShell

Invoke-RestMethod and Invoke-WebRequest take the proxy address in -Proxy and the login in -ProxyCredential, which expects a credential object:

$proxy = "http://HOST:PORT"
$pass  = ConvertTo-SecureString "PASSWORD" -AsPlainText -Force
$cred  = New-Object System.Management.Automation.PSCredential("USERNAME", $pass)

$r = Invoke-RestMethod -Uri "https://api.ipify.org?format=json" -Proxy $proxy -ProxyCredential $cred
$r.ip

To see the status code and headers instead of the parsed body, use Invoke-WebRequest with the same parameters; in Windows PowerShell 5.1 add -UseBasicParsing:

$resp = Invoke-WebRequest -Uri "https://api.ipify.org?format=json" -Proxy $proxy -ProxyCredential $cred -UseBasicParsing
$resp.StatusCode
$resp.Content

These cmdlets work with HTTP(S) proxies. To test SOCKS5, use the curl.exe command above.

4. Confirm rotation and sticky sessions

Start with the plain username. Each curl.exe call opens a new connection, and on Residential and Rotating Mobile every new connection gets a new IP, so the five lines should differ:

1..5 | ForEach-Object {
  curl.exe -s -x "http://HOST:PORT" -U "USERNAME:PASSWORD" "https://api.ipify.org"
  ""
}

For a sticky session, change the username to USERNAME-session-482913-ttl-600: a session number that you pick (digits only) and a TTL in seconds, here 600. On Residential and Unlimited Residential the longest session is 24 hours, a TTL of 86400. The same loop now prints one address five times:

1..5 | ForEach-Object {
  curl.exe -s -x "http://HOST:PORT" -U "USERNAME-session-482913-ttl-600:PASSWORD" "https://api.ipify.org"
  ""
}

5. Measure response time

Measure-Command times any command. Repeat the measurement a few times and test against the site you plan to work with:

(Measure-Command {
  Invoke-RestMethod -Uri "https://api.ipify.org" -Proxy $proxy -ProxyCredential $cred
}).TotalMilliseconds

curl.exe can also split the time into stages. In PowerShell, write the format string in single quotes:

curl.exe -s -o NUL -x "http://HOST:PORT" -U "USERNAME:PASSWORD" -w 'status=%{http_code} connect=%{time_connect}s total=%{time_total}s' "https://api.ipify.org"

Windows proxy settings and browsers

Settings → Network & internet → Proxy → Manual proxy setup accepts only an address and a port. There is no field for a username or password; applications that use the system proxy, such as Edge and Chrome, ask for them in a sign-in prompt on the first request. Enter the full username, including the -session-…-ttl-… suffix if you use a sticky session.

After changing the setting, open the My IP tool in the browser to confirm the address. Remember to switch the system proxy off when you finish testing, because it applies to every application that follows the Windows setting.

Common errors

MessageLikely causeWhat to check
(407) Proxy Authentication RequiredCredentials rejectedUsername and password copied in full, with the session suffix; the plan is still active
TcpTestSucceeded : FalsePort blocked or wrongThe port shown in your dashboard; Windows Defender Firewall, antivirus or the office network
The remote name could not be resolvedHostname typo or DNS problemThe host from your dashboard, then Resolve-DnsName followed by that host
A parameter cannot be found, after typing curlPowerShell ran its aliasType curl.exe instead of curl
Your own IP in the resultThe request did not go through the proxyThe -x or -Proxy option is present in the command you ran

If the proxy still does not respond, email info@coreproxies.com with the command you ran, the full error text and your proxy type. Leave the password out of the message.

Run the checks on your own plan

Copy the proxy string from your dashboard and work through the steps above in PowerShell. If you do not have a plan yet, the pricing page lists every product.