Unity3D & HTTP/HTTPS proxy: problem solved! o/

As I already mentioned in a previous post, accessing Unity3D Asset Store or checking for editor updates seemed impossible when working behind a web proxy (like most of people at work I guess)…

Well you can now forget it as Rob Rolleston has given me the solution in his reply on Unity3D “support” forum: you have to set the correct Windows user environment variables for Unity3D to know how to access the web (don’t know how it works for MacOS users…).

Those variables are the following and should match this pattern:

  • HTTP_proxy = <http proxy ip/url>:<http proxy port>
  • HTTPS_proxy = <https proxy ip/url>:<https proxy port>

If you wonder how to add user env variables, well… LMGTFY 😀

Thanks again to Rob and enjoy asset store from work! o/

PS: don’t forget to restart Unity3D editor after setting up the user environment variables!

PS2: some users may also need to restart Windows (or at least close/reopen their session) for the changes to be applied

19 Responses to Unity3D & HTTP/HTTPS proxy: problem solved! o/
  1. CyP Reply

    Hi can you please tell me how this might work if you have a .pac file to configure your proxy? I tried setting these enviroment variables and the Asset Store window says I am offline and the console gives me this error:

    “Failure when receiving data from the peer url: https://kharma.unity3d.com/

    but I get a different coulld not connect error in the console when there are no env variables set. Any ideas? (The pac file is needed for me to use different proxies for different sites)


    • GFX47 Reply

      “Failure when receiving data from the peer url” error message reminds me the cURL library.
      I don’t know exactly how do the pac files work but I don’t think it’s used by Unity3D editor.
      If your need is to use different proxies for different sites, may be you should write a batch file (.bat) setting the environment variables values depending on your site conditions.

  2. Robert Fauver Reply

    Has anyone attempted to do this on a MAC yet?

  3. Le Giang Anh Reply


    I created 2 Variable in User variables for like these:


    But Unity still show that I’m offline.

    Could you please help me on this?


  4. GFX47 Reply

    Try to remove the https:\\ prefix (WTF with the double backslash anyway?).

  5. unitydude Reply

    Thank you for this post! It helped me use the Asset store when behind our corporate proxy…

  6. wiseguybec Reply


    still no OSX solution!!! What does a Mac User need to do?

    • GFX47 Reply

      I’m sorry, I’m not at all a Mac user.
      Maybe there’s also environment variables that can be set and could solve the problem?
      Please tell us if you manage to do so.

  7. Ray Reply

    hi i did the instructions but once i shut off my computer, it went back to the problem.

  8. Glenn Reply

    Thou art Legend.

  9. Abhishek Reply

    Wow, thanks a lot… it helped. By any chance do you happen to know if the variables affect others applications or windows services?

    • GFX47 Reply

      I had a problem once with a game but it was badly coded one 😉

  10. maydayn Reply

    i first find your post in forum.unity, and it really saved me, thanks so much…

    also, if i may add for another reference, if you have character “@” in your username or password, you should replace it with “%40”, because the path will read the first “@” it find.
    and don’t forget to restart your computer (not only unity).

    mine was like (username = myusername@mhs.ee.its.ac.id) :

    ps: sorry for bad english

  11. Alex Reply

    Thank you for this post and info. It helped me connect to the app store through a proxy.

    To those wondering how to use this and a proxy.pac, put the location of the proxy.pac in the browser. It will open the .pac file, which is basically a text file, and find which proxy you’re using. Use that proxy.

    Windows 7 at least, no need to reboot machine. Just restart Unity, attempt to connect to asset store.

  12. Thomas Reply

    Here is a solution for the Mac, if there is still someone searching. like I was:

    I installed a preference pane called “RCEnvironment”, which allows the user to add environment variables via a GUI inside the OSX system settings. There you can add variables. But here is the trick: variable names are case sensitive, so if you enter HTTP_proxy, which I did, it will not work. Instead, type in http_proxy. Changes take effect after re-login.

  13. Fran Reply

    If your proxy need username and password you have to put:

    HTTPS_proxy: http://usuername:password@url_proxy:port_proxy

    If your username has @ you have to change this @ with a %40

  14. LCP Reply

    u guys are the best (Y)

  15. Seyyed Reply

    Worked for me! Thanks… 🙂

Leave a Reply

Your email address will not be published. Please enter your name, email and a comment.