# Setting up corporate network proxy (with username and password)

**URL:** <https://discourse.julialang.org/t/setting-up-corporate-network-proxy-with-username-and-password/108903>\
**Category:** General Usage\
**Tags:** question, windows, proxy\
**Created:** [January 17, 2024, 11:47am UTC](https://discourse.julialang.org/t/setting-up-corporate-network-proxy-with-username-and-password/108903 "2024-01-17T11:47:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mobius-eng](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mobius-eng/32/99_2.png) [@mobius-eng](https://discourse.julialang.org/u/mobius-eng)\
**Post date:** [January 17, 2024, 11:47am UTC](https://discourse.julialang.org/t/setting-up-corporate-network-proxy-with-username-and-password/108903/1 "2024-01-17T11:47:01Z")

</div>

I am trying to set proxy settings for Julia to use, but without much success (I am behind corporate firewall).

System: Windows 10, Julia 1.10

The proxy is set in the form `http://<User>@<Password>@<Addresss>:<Port>` (this form works with `pip install <...> --proxy=...`)

I have tried setting it with

```julia-auto
ENV["HTTP_PROXY"] = "..."

```

but it doesn’t work: I tried `st` for package status, it still cannot connect

```julia-auto
(@v1.10) pkg> st
  Installing known registries into `C:\Users\Cherkaeva\.julia`
┌ Warning: could not download https://pkg.julialang.org/registries
│ exception = RequestError: Failed to connect to pkg.julialang.org port 443 after 21067 ms: Couldn't connect to server while requesting https://pkg.julialang.org/registries
└ @ Pkg.Registry C:\Users\Cherkaeva\AppData\Local\Programs\Julia-1.10.0\share\julia\stdlib\v1.10\Pkg\src\Registry\Registry.jl:69

```

Is my approach correct? Is there a walkaround?

---

<div class="post-metadata">

**Author:** ![mobius-eng](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mobius-eng/32/99_2.png) [@mobius-eng](https://discourse.julialang.org/u/mobius-eng)\
**Post date:** [January 18, 2024, 5:32am UTC](https://discourse.julialang.org/t/setting-up-corporate-network-proxy-with-username-and-password/108903/2 "2024-01-18T05:32:14Z")

</div>

After some trial-and-error these are two changes I made to make it work:

1. Julia doesn’t accept the syntax where user name and password are separated by `@` in the proxy setting. It accepts colon. So, it should be `http://<user>:<password>@<ip>:<port>`

2. I needed to set not only `HTTP_PROXY` but also `HTTPS_PROXY`. In my case both settings were the same.

---

<div class="post-metadata">

**Author:** ![ajlawren](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ajlawren/32/219639_2.png) [@ajlawren](https://discourse.julialang.org/u/ajlawren)\
**Post date:** [December 2, 2025, 3:23pm UTC](https://discourse.julialang.org/t/setting-up-corporate-network-proxy-with-username-and-password/108903/3 "2025-12-02T15:23:55Z")

</div>

For anyone else that might be having issues with this, I did the above but it only worked when I omitted “http://” and “https://”. Go figure.
