Power Query is the data import engine behind the Data > From Web feature in Excel, and it sends web requests through the Windows proxy setting. Excel has no proxy screen of its own. The M function Web.Contents has no proxy parameter either. The trap is authentication: Power Query never opens a password prompt for a proxy, so a proxy that asks for a password returns error 407. This post covers the Windows setting, the IP whitelist for paid proxies, common error messages and a Python route for multi-country data.
Where the proxy setting comes from
Power Query reads the proxy address from Windows. There is no proxy field in Excel's options, in the Power Query Editor or in the query code. Microsoft's documentation for connector developers also says the proxy is set in two places in Windows: the proxy page in the Settings app and the older Internet Options window. Both change the same user setting.
The From Web wizard writes an M query in the background. For an HTML page, the query Excel generates looks roughly like this:
let
Source = Web.Page(Web.Contents("https://example.com/table")),
Data = Source{0}[Data]
in
DataThe function that opens the connection is Web.Contents. Microsoft's reference page lists every option it accepts: Query, ApiKeyName, Headers, Timeout, ExcludedFromCacheKey, IsRetry, ManualStatusHandling, RelativePath and Content. There is no proxy in that list. So you cannot put the proxy in the query; you can only change it in Windows. We cover the basics of the wizard in How to Extract Data From a Website.
Setting the proxy in Windows
In Windows 11, the proxy is set in a few steps in the Settings app. The labels below come from the English interface.
- Press
Windows + Ito open Settings. - Go to Network & internet > Proxy.
- Next to Manual proxy setup, select Set up.
- Turn on Use a proxy server.
- Enter
pr.proxynet.iounder Proxy IP address and8000under Port. - Select Save, then close Excel completely and open it again.
This screen only has the address, the port, an exception list and a box for local addresses. There is no username or password field. The details of this screen and the command-line methods are in Windows and Chrome Proxy Settings.
The setting affects the whole user session, not just Excel. Chrome, Edge and other programs that read the system setting also go out through the same proxy. Turn the switch off once you have your data. If the settings are greyed out and cannot be changed, the proxy is set by company policy. In that case your IT team makes the change.
Proxies that ask for a password
Power Query does not send a username and password to the proxy. When a proxy returns 407, a browser shows a sign-in prompt. Power Query shows no prompt, and the query stops with an error. Microsoft states this plainly for Power BI Desktop: its web requests do not use proxy credentials. Excel runs the same Power Query engine.
A common mistake is typing the proxy details into Power Query's credentials dialog. On the first connection, the Web connector offers Anonymous, Windows, Basic, Web API and Organizational account. These credentials go to the target site, not to the proxy. Entering the proxy password on the Basic tab does not fix error 407.
For a paid proxy, the fix is an IP whitelist. You add the public IP address your computer uses on the internet to the allowed list in your provider's dashboard. The proxy then accepts connections from that address without asking for a password. In the Windows screen you enter only pr.proxynet.io and 8000. We explain the difference between the two methods in Proxy Authentication Methods.
The whitelist has two limits. On home connections, the public IP can change over time. When it changes, you have to update the list. In an office, everyone who shares the same public IP can also use the proxy. An office network with a static IP is the best fit for this method.
Checking the proxy from inside Excel
You can confirm the proxy is active without leaving Excel. Enter https://api.ipify.org?format=json in the Data > From Web dialog and select OK. This service returns the IP address of the request as JSON. Power Query shows the response as a record with an ip field.
Run the same query once more with the proxy turned off. If the two addresses differ, Power Query is going out through the proxy. If the address stays the same, the preview may have come from the cache. Run the query again with Data > Refresh All. If the result still does not change, close and reopen Excel.
To see prices or content that change by location, the IP has to come from that country. A country-targeted Residential Proxy handles this.
Common error messages
Web errors in Power Query usually start with DataSource.Error and end with a status code. In other interface languages part of the message may appear translated, but the status code stays the same.
| Message contains | Meaning | What to do |
|---|---|---|
(407): Proxy Authentication Required | The proxy wants a password, Power Query does not send one | Switch to an IP whitelist |
Unable to connect to the remote server | Wrong proxy address or port, or the proxy is off | Check the address and port in Windows |
The operation has timed out | No response within the time limit | Test the proxy in a browser; for a large page, pick a smaller source |
(403): Forbidden | The target site refused the request | Follow the site's terms and robots.txt; use the official API if there is one |
this credential type isn't supported | The selected credential type does not fit the site | Change the credential type |
The default timeout for Web.Contents is 100 seconds. A slow page coming through a proxy can hit this limit.
To change the credentials, go to Data > Get Data > Data Source Settings. Select the source, select Edit Permissions, then select Edit under Credentials. You can remove a wrongly saved entry with Clear Permissions.
The same engine in Power BI Desktop
Power BI Desktop also gets web data through Power Query and has the same limits. There is no proxy field in its Options menu. Unlike Excel, it generates the Web.BrowserContents function for HTML pages. This function opens the page with the WebView2 component of Microsoft Edge.
Microsoft's sign-in troubleshooting page covers the proxy in two points. First, Power BI Desktop does not use proxy credentials. If an administrator sets the registry value UseDefaultCredentialsForProxy to 1, the app authenticates with the credentials of the Windows session. This setting is meant for corporate proxies that authenticate with a Windows account. It does not carry the username and password of a paid proxy. Second, the page states that Power BI Desktop is not a proxy-aware application.
When a report is published to the Power BI service, scheduled refresh does not run on your computer. It runs in Microsoft's cloud or on an on-premises data gateway. Your Windows proxy setting does not travel there.
Limits and multi-country data
In Power Query there is one proxy per Windows user. Two queries cannot go out through different proxies at the same time. To compare Türkiye and Germany prices in one file, you would have to change the setting by hand before every refresh. That setup invites mistakes. Use an HTTP proxy on the Excel side. Entering a SOCKS5 address in the Windows proxy screen does not give the expected result.
For multi-country data, fetch it with Python and hand it to Excel as files. The Python Requests library can use a different proxy for each request. First, define the country addresses you copied from the dashboard as environment variables (PowerShell):
$env:PROXY_TR = "http://user:pass@pr.proxynet.io:8000"
# define PROXY_DE the same way with the Germany addressThen download a separate file for each country:
import os
import requests
URL = "https://example.com/report.csv" # address the data is downloaded from
PROXIES = {
"TR": os.environ["PROXY_TR"], # Türkiye address copied from the dashboard
"DE": os.environ["PROXY_DE"], # Germany address copied from the dashboard
}
os.makedirs("downloads", exist_ok=True)
for country, proxy in PROXIES.items():
response = requests.get(URL, proxies={"http": proxy, "https": proxy}, timeout=30)
response.raise_for_status()
with open(f"downloads/report_{country}.csv", "wb") as file:
file.write(response.content)
print(country, response.status_code, len(response.content), "bytes")We ran the script with Python 3.13 and Requests 2.34 through a local test proxy that asks for a password, on 2 December 2026. With the right password both files downloaded; with a wrong password raise_for_status() stopped with error 407.
In Excel, go to Data > Get Data > From File > From Folder and point it at the downloads folder. From the Combine menu, choose Combine & Transform Data. Power Query gathers the files into one table, and the file name column shows which country each row came from. With this setup you never touch Excel's proxy setting.
The bottom line
In Excel the proxy comes from the Windows setting, cannot change per query and carries no password. For one country, the Windows screen plus an IP whitelist is enough; for several countries, fetch the data with Python and combine it from a folder. Above all, if you see 407, do not type the password into the Power Query dialog: switch to the whitelist. If you want the same IP on every refresh, use a ISP Proxy.
Sources
- Web.Contents reference, options record: learn.microsoft.com
- Power BI Desktop sign-in troubleshooting, Using default system credentials for web proxy: learn.microsoft.com
- Use a proxy server in Windows: support.microsoft.com
- Requests documentation, Advanced Usage, Proxies: requests.readthedocs.io
Frequently asked questions
Where is the proxy setting in Excel?
Excel has no proxy setting. Power Query uses the Windows user proxy setting. You set it under Settings > Network & internet > Proxy with the Set up button next to Manual proxy setup. After saving the address and port, close and reopen Excel. The same setting also affects browsers and other programs that read the system setting.
Can I put a proxy address in Web.Contents?
No. The Web.Contents options record has no proxy field. The accepted fields include options such as Headers, Query, Timeout, RelativePath and Content. Headers added with Headers go to the target site and do not set the proxy address. The proxy can only be changed in the Windows setting.
Why doesn't Excel ask for the proxy password?
Power Query does not send a username and password to the proxy. A browser opens a password prompt on a 407 response; Power Query does not, and the query stops with an error. The Basic option in the credentials dialog is for the target site and never reaches the proxy. With a paid proxy, add your computer's public IP address to the provider's whitelist.
Does a SOCKS5 proxy work with Excel?
Not with this setup. The Windows proxy screen treats the address and port as an HTTP proxy. For Excel and Power BI Desktop, enter an HTTP proxy address. If you need SOCKS5, fetch the data with a tool that supports SOCKS5, such as Python, and import it into Excel as a file. You can use Proxynet SOCKS5 addresses in those tools.
Can I pick a different country for each query?
No. There is one proxy per Windows user, and all queries go out from the same address. Changing the setting by hand between refreshes is possible but easy to mix up. The safer route is to download each country's data to a separate file with Python and combine the files into one table in Excel with the From Folder option.
Does scheduled refresh in the Power BI service use my proxy?
No. Scheduled refresh does not run on your computer; it runs in Microsoft's cloud or on an on-premises data gateway. The proxy setting you entered in Windows does not travel there. If the gateway needs to go out through a proxy, that setting is made on the machine where the gateway is installed, usually by the IT team.




