Trouble signing in, I am redirected to "id.unity.cn".

When I try to sign in, the browser keeps redirecting to a “.cn” website, with a label of The Ministry of Public Security of China.
Please tell me how to fix it and sign in through a secured website.

Sounds like you could’ve been hacked, reset your PC and update your antivirus and all that bobbins.

2 Likes

No, you’re likely not hacked. id.unity.cn is a valid URL for Unity Technologies Shanghai.
Are you living in China or anywhere near there?

As for the label, companies from China are legally required to show it on their websites. If you follow the link and solve the captcha, you’ll be greeted with information about who owns the website. The bold text on the top roughly translates to:

.

Thank you for answering. No, I don’t live in China, I’m physically in New York now. The only connection between me and China now is I bought this Dell laptop in China about 5 years ago. I reset the system several times and downloaded clean (it should be) windows installation media from Microsoft official website.
And still, they knew I had some connection with China, and assume I should be governed by it. To be frank this is quite scary.
I know Unity has a branch in Shanghai, that’s good and great. I just want to know how can I get rid of this, do I have to buy a new computer?

1 Like

I doubt you need a new computer. Are you running Chinese Windows? Or US. Can you try with a different browser, and/or clear your cache? Perhaps try with a different network too, as a test. Like your phone hotspot. If you can share your IP address in a private message, I can check to see if it is associated with a US ISP.

Thank you, it doesn’t work, I’ll try Ubuntu instead.

For me in a similar situation, clearing cookies and cache helped. But you’ve already tried so many things, I’m not sure it will help.

You might try creating another user account.

Have u solved the problem yet?I had the same problem now.

hey here’s a solution! delete %AppData%/UnityHub or C:\Users(your user name)\AppData\Roaming\UnityHub and try launch unityhub again!

3 Likes

I run into the same problem! I cannot login into unity. It keeps poping “api.unity.cn” instead of “.com”. I am using mac mini, I deleted ~/Library/Application Support/UnityHub, which does not help.

Could anyone tell me, how does unityhub choose the right domain?

1 Like

Complete Guide: How to Bypass Unity CN and Access International Unity Hub

:police_car_light: What’s the Problem?

If you’re in China (or using a Chinese network), Unity automatically redirects you to Unity CN instead of the international version. This means:

  • You can’t sign in with Google
  • Limited access to Unity services
  • Different login system (id.unity.cn instead of id.unity.com)
  • Potentially missing features

:clipboard: What You Need Before Starting

Required:

  • A proxy tool running (Shadowsocks, Clash, or VPN)
  • Unity Hub installed on your computer
  • Basic knowledge of where your files are located

Check Your Proxy First:

  • Make sure your proxy software (Clash/Shadowsocks) is running
  • Test it by opening a web browser and visiting google.com
  • If Google loads, your proxy is working

:magnifying_glass_tilted_left: Find Your Unity Hub Location

Your Unity Hub might be in a different location than mine. Here’s how to find it:

  1. Right-click on your Unity Hub desktop shortcut
  2. Select “Open file location” or “Properties”
  3. Look for the path - it’s usually something like:
    • C:\Program Files\Unity Hub\Unity Hub.exe
    • C:\Program Files (x86)\Unity Hub\Unity Hub.exe
    • C:\Users\[YourName]\AppData\Local\Programs\Unity Hub\Unity Hub.exe

:memo: Write down your exact path - you’ll need it in Step 3!

:gear: Check Your Proxy Settings

Different proxy tools use different ports:

For Clash Users:

  1. Open Clash
  2. Look for “Port” or “HTTP Port” settings
  3. Common Clash ports: 7890, 7891, or 1080
  4. Your proxy address will be: http://127.0.0.1:[PORT_NUMBER]

For Shadowsocks Users:

  1. Open Shadowsocks
  2. Check the local port (usually 1080)
  3. Your proxy address will be: http://127.0.0.1:1080

For Other Proxy Tools:

  • Check your proxy software’s settings for “Local Port” or “HTTP Port”

:memo: Step 1: Create the Script

Copy This Script:

@echo off
REM Unity Hub Proxy Launch Script
REM This script launches Unity Hub with proxy settings to bypass Unity CN

echo Starting Unity Hub with proxy settings...

REM Set proxy environment variables
REM IMPORTANT: Change these addresses to match YOUR proxy configuration
set HTTP_PROXY=http://127.0.0.1:7890
set HTTPS_PROXY=http://127.0.0.1:7890

REM Optional: Set additional proxy variables for completeness
set http_proxy=%HTTP_PROXY%
set https_proxy=%HTTPS_PROXY%

REM Display current proxy settings
echo Using HTTP Proxy: %HTTP_PROXY%
echo Using HTTPS Proxy: %HTTPS_PROXY%

REM Launch Unity Hub
REM IMPORTANT: Change this path to YOUR Unity Hub location
echo Launching Unity Hub...
start "" "C:\Program Files\Unity Hub\Unity Hub.exe"

REM Optional: Wait a moment before closing the command window
timeout /t 3 /nobreak >nul

echo Unity Hub launched successfully!
echo You can now close this window or press any key to exit.
pause

:wrench: Customize the Script for Your Setup:

Change the Proxy Port:

  • Find this line: set HTTP_PROXY=http://127.0.0.1:7890
  • Replace 7890 with YOUR proxy port number
  • For Shadowsocks users: change to 1080
  • For other proxy tools: use the port you found in the previous step

Change the Unity Hub Path:

  • Find this line: start "" "C:\Program Files\Unity Hub\Unity Hub.exe"
  • Replace with YOUR Unity Hub path from earlier

:floppy_disk: Step 2: Save the Script

  1. Open Notepad (search “Notepad” in Windows Start menu)
  2. Copy and paste the script code
  3. Customize the proxy port and Unity Hub path as explained above
  4. Click File → Save As
  5. Important: In the “Save as type” dropdown, select “All Files (.)”
  6. Name your file: launch_unity_hub.bat (must end with .bat)
  7. Save location: Desktop (for easy access)
  8. Click Save

:white_check_mark: What You Should See:

  • A file named launch_unity_hub.bat on your Desktop
  • The file icon should look like a small gear or command prompt icon
  • If it looks like a text file, you saved it wrong - try again

:rocket: Step 3: Run the Script

  1. Close Unity Hub if it’s currently running
  2. Double-click on launch_unity_hub.bat
  3. You’ll see a black window (command prompt) appear with text like:
    Starting Unity Hub with proxy settings...
    Using HTTP Proxy: http://127.0.0.1:7890
    Using HTTPS Proxy: http://127.0.0.1:7890
    Launching Unity Hub...
    Unity Hub launched successfully!
    
  4. Unity Hub should open automatically
  5. Don’t close the black window until Unity Hub finishes loading

:locked_with_key: Step 4: Test the Login

  1. In Unity Hub, click “Sign in”
  2. Look at the login page URL in the browser that opens:
    • :white_check_mark: Success: URL shows id.unity.com (international version)
    • :cross_mark: Failed: URL shows id.unity.cn (Chinese version)
  3. If successful: You should see Google sign-in option and other international login methods

:hammer_and_wrench: Troubleshooting

Problem: Unity Hub won’t start

Solution:

  • Check if the Unity Hub path in your script is correct
  • Make sure Unity Hub isn’t already running (check Task Manager)
  • Try running the script as Administrator (right-click → “Run as administrator”)

Problem: Still getting Unity CN login

Solution:

  • Make sure your proxy software is running
  • Check if the proxy port in your script matches your proxy settings
  • Try adding unity.com and unity3d.com to your proxy’s domain list
  • Restart your proxy software and try again

Problem: “File not found” error

Solution:

  • Your Unity Hub path is wrong - follow the steps in “Find Your Unity Hub Location” again
  • Make sure the path in your script exactly matches your actual Unity Hub location

Problem: Script won’t run

Solution:

  • Make sure you saved the file with .bat extension
  • Try running as Administrator
  • Check if Windows antivirus is blocking the script

:pushpin: Important Notes

:warning: Always Use the Script

  • Never launch Unity Hub directly from now on
  • Always use your launch_unity_hub.bat script
  • You can pin the script to your taskbar for easy access

:counterclockwise_arrows_button: For Future Use

  • Keep the script file safe - you’ll need it every time
  • If you change proxy software or ports, update the script
  • Share this guide with other developers who have the same issue

:bullseye: One-Time Setup

  • You only need to create this script once
  • After setup, just double-click the script whenever you want to use Unity Hub
  • The script will automatically apply the proxy settings and launch Unity Hub

:tada: Success Indicators

You’ll know it’s working when:

  • :white_check_mark: Login page shows id.unity.com instead of id.unity.cn
  • :white_check_mark: Google sign-in button is available and functional
  • :white_check_mark: You can access international Unity services
  • :white_check_mark: No more “region not supported” messages

Credits: Based on the Chinese guide at 如何逃离Unity中国特供版 | Logiconsole but made beginner-friendly.

Need Help? If you’re still having issues, make sure to include:

  • Your proxy software name and version
  • Your Unity Hub installation path
  • The exact error message you’re seeing
  • Screenshot of what happens when you run the script

完整指南:如何绕过Unity CN并访问国际版Unity Hub

:police_car_light: 问题是什么?

如果你在中国(或使用中国网络),Unity会自动将你重定向到Unity CN而不是国际版。这意味着:

  • 无法使用Google登录
  • Unity服务访问受限
  • 不同的登录系统(id.unity.cn 而不是 id.unity.com
  • 可能缺少某些功能

:clipboard: 开始前需要准备什么

必需的:

  • 正在运行的代理工具(Shadowsocks、Clash或VPN)
  • 电脑上已安装Unity Hub
  • 基本的文件位置查找知识

首先检查你的代理:

  • 确保你的代理软件(Clash/Shadowsocks)正在运行
  • 打开网页浏览器访问google.com进行测试
  • 如果Google能正常加载,说明代理工作正常

:magnifying_glass_tilted_left: 找到你的Unity Hub位置

你的Unity Hub可能和我的位置不同。以下是查找方法:

  1. 右键点击 Unity Hub桌面快捷方式
  2. 选择 “打开文件位置”“属性”
  3. 查看路径 - 通常是这样的:
    • C:\Program Files\Unity Hub\Unity Hub.exe
    • C:\Program Files (x86)\Unity Hub\Unity Hub.exe
    • C:\Users\[你的用户名]\AppData\Local\Programs\Unity Hub\Unity Hub.exe

:memo: 记下你的确切路径 - 在步骤3中会用到!

:gear: 检查你的代理设置

不同的代理工具使用不同的端口:

Clash用户:

  1. 打开Clash
  2. 查找 “端口”“HTTP端口” 设置
  3. 常见Clash端口:789078911080
  4. 你的代理地址将是:http://127.0.0.1:[端口号]

Shadowsocks用户:

  1. 打开Shadowsocks
  2. 检查本地端口(通常是1080
  3. 你的代理地址将是:http://127.0.0.1:1080

其他代理工具:

  • 在你的代理软件设置中查找"本地端口"或"HTTP端口"

:memo: 步骤1:创建脚本

复制这个脚本:

@echo off
REM Unity Hub 代理启动脚本
REM 此脚本使用代理设置启动Unity Hub以绕过Unity CN

echo 正在使用代理设置启动Unity Hub...

REM 设置代理环境变量
REM 重要:修改这些地址以匹配你的代理配置
set HTTP_PROXY=http://127.0.0.1:7890
set HTTPS_PROXY=http://127.0.0.1:7890

REM 可选:设置额外的代理变量以确保完整性
set http_proxy=%HTTP_PROXY%
set https_proxy=%HTTPS_PROXY%

REM 显示当前代理设置
echo 使用HTTP代理: %HTTP_PROXY%
echo 使用HTTPS代理: %HTTPS_PROXY%

REM 启动Unity Hub
REM 重要:将此路径更改为你的Unity Hub位置
echo 正在启动Unity Hub...
start "" "C:\Program Files\Unity Hub\Unity Hub.exe"

REM 可选:关闭命令窗口前等待一会儿
timeout /t 3 /nobreak >nul

echo Unity Hub启动成功!
echo 你现在可以关闭此窗口或按任意键退出。
pause

:wrench: 为你的设置定制脚本:

更改代理端口:

  • 找到这行:set HTTP_PROXY=http://127.0.0.1:7890
  • 7890替换为你的代理端口号
  • Shadowsocks用户:改为1080
  • 其他代理工具:使用你在上一步找到的端口

更改Unity Hub路径:

  • 找到这行:start "" "C:\Program Files\Unity Hub\Unity Hub.exe"
  • 替换为你之前找到的Unity Hub路径

:floppy_disk: 步骤2:保存脚本

  1. 打开记事本(在Windows开始菜单搜索"记事本")
  2. 复制粘贴 脚本代码
  3. 定制 代理端口和Unity Hub路径,如上所述
  4. 点击 文件 → 另存为
  5. 重要: 在"保存类型"下拉菜单中,选择 “所有文件 (.)”
  6. 命名你的文件: launch_unity_hub.bat(必须以.bat结尾)
  7. 保存位置: 桌面(便于访问)
  8. 点击 保存

:white_check_mark: 你应该看到的:

  • 桌面上有一个名为launch_unity_hub.bat的文件
  • 文件图标应该看起来像一个小齿轮或命令提示符图标
  • 如果看起来像文本文件,说明保存错误 - 重新尝试

:rocket: 步骤3:运行脚本

  1. 关闭Unity Hub(如果当前正在运行)
  2. 双击 launch_unity_hub.bat
  3. 会出现一个黑色窗口(命令提示符),显示类似文本:
    正在使用代理设置启动Unity Hub...
    使用HTTP代理: http://127.0.0.1:7890
    使用HTTPS代理: http://127.0.0.1:7890
    正在启动Unity Hub...
    Unity Hub启动成功!
    
  4. Unity Hub应该会自动打开
  5. 不要关闭黑色窗口,直到Unity Hub完成加载

:locked_with_key: 步骤4:测试登录

  1. 在Unity Hub中,点击 “登录”
  2. 查看打开的浏览器中的登录页面URL
    • :white_check_mark: 成功: URL显示id.unity.com(国际版)
    • :cross_mark: 失败: URL显示id.unity.cn(中国版)
  3. 如果成功: 你应该能看到Google登录选项和其他国际登录方式

:hammer_and_wrench: 故障排除

问题:Unity Hub无法启动

解决方案:

  • 检查脚本中的Unity Hub路径是否正确
  • 确保Unity Hub没有已经在运行(检查任务管理器)
  • 尝试以管理员身份运行脚本(右键→"以管理员身份运行")

问题:仍然显示Unity CN登录

解决方案:

  • 确保你的代理软件正在运行
  • 检查脚本中的代理端口是否与你的代理设置匹配
  • 尝试将unity.com和unity3d.com添加到你的代理域名列表
  • 重启代理软件后重试

问题:"文件未找到"错误

解决方案:

  • 你的Unity Hub路径错误 - 重新按照"找到你的Unity Hub位置"步骤操作
  • 确保脚本中的路径与你实际的Unity Hub位置完全匹配

问题:脚本无法运行

解决方案:

  • 确保文件保存时使用了.bat扩展名
  • 尝试以管理员身份运行
  • 检查Windows杀毒软件是否阻止了脚本

:pushpin: 重要注意事项

:warning: 始终使用脚本

  • 从现在开始永远不要直接启动Unity Hub
  • 始终使用你的launch_unity_hub.bat脚本
  • 你可以将脚本固定到任务栏以便于访问

:counterclockwise_arrows_button: 日后使用

  • 保存好脚本文件 - 每次都需要用到
  • 如果更换代理软件或端口,请更新脚本
  • 与其他有同样问题的开发者分享这个指南

:bullseye: 一次性设置

  • 你只需要创建这个脚本一次
  • 设置完成后,每次想使用Unity Hub时只需双击脚本
  • 脚本会自动应用代理设置并启动Unity Hub

:tada: 成功指标

你会知道它工作了,当:

  • :white_check_mark: 登录页面显示id.unity.com而不是id.unity.cn
  • :white_check_mark: Google登录按钮可用且正常工作
  • :white_check_mark: 你可以访问国际Unity服务
  • :white_check_mark: 不再出现"地区不支持"的消息

致谢: 基于中文指南 如何逃离Unity中国特供版 | Logiconsole 但制作得更适合初学者。

需要帮助? 如果你仍然遇到问题,请确保包含:

  • 你的代理软件名称和版本
  • 你的Unity Hub安装路径
  • 你看到的确切错误消息
  • 运行脚本时发生情况的截图
3 Likes