# How to Test a Proxy on Windows | Core Proxies

Source: https://coreproxies.com/help/article/how-to-test-a-proxy-on-windows/

Last updated: 2026-11-27

## 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.

November 27, 2026 · 4 min read · Windows

### 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](https://coreproxies.com/tools/my-ip/) shows the same address together with its country:

```text
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:

```text
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`:

```bash
# 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:

```text
$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`:

```text
$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:

```powershell
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:

```powershell
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:

```powershell
(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:

```bash
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](https://coreproxies.com/tools/my-ip/) 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

| Message | Likely cause | What to check |
| --- | --- | --- |
| (407) Proxy Authentication Required | Credentials rejected | Username and password copied in full, with the session suffix; the plan is still active |
| TcpTestSucceeded : False | Port blocked or wrong | The port shown in your dashboard; Windows Defender Firewall, antivirus or the office network |
| The remote name could not be resolved | Hostname typo or DNS problem | The host from your dashboard, then `Resolve-DnsName` followed by that host |
| A parameter cannot be found, after typing curl | PowerShell ran its alias | Type `curl.exe` instead of `curl` |
| Your own IP in the result | The request did not go through the proxy | The `-x` or `-Proxy` option is present in the command you ran |

If the proxy still does not respond, email [info@coreproxies.com](mailto: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.

[Get started](https://coreproxies.com/register/) · [See pricing](https://coreproxies.com/pricing/)

Next article

[How to Target a Country, State or City →](https://coreproxies.com/help/article/how-to-select-a-certain-proxy-geolocation/)
