文档/安装 wantasticd3 分钟Windows 10/11 · Server

在 Windows 上安装

在 Windows 10/11 和 Windows Server 上安装 wantasticd:以管理员身份打开 PowerShell,粘贴一行命令,然后在浏览器中批准设备。

完成后你将得到

wantasticd 作为自动启动的 Windows 服务 "Wantastic Overlay Networking" 运行,托盘应用在登录时启动,电脑在控制台中显示为 Online。

开始之前

  • Windows 10、Windows 11 或 Windows Server 2016+(x64、ARM64 或 32 位)。
  • 一个可以批准管理员提示的 Windows 账户。
  • 你的 Wantastic 账户(安装过程中只需登录一次)。

快速安装(4 步)

  1. 1以管理员身份打开 PowerShell。
  2. 2粘贴 irm https://get.wantastic.app/install.ps1 | iex 并按 Enter。
  3. 3扫描二维码,或按住 Ctrl 点击链接。
  4. 4在浏览器中点击 Claim Device。电脑会自动连接。
PowerShell(管理员)powershell
irm https://get.wantastic.app/install.ps1 | iex

提示: 更喜欢安装向导?在 wantastic.app/download 下载并运行,然后点击时钟旁的 Wantastic 图标,选择 Log in…。

注意: 下面的图片展示了每一步。

以管理员身份打开 PowerShell

安装程序会创建 Windows 服务,因此 PowerShell 必须以管理员身份运行。

  1. 1点击开始(或按 Windows 键),输入 powershell。
  2. 2在右侧点击 Run as administrator(以管理员身份运行)。
  3. 3Windows 会询问 "Do you want to allow this app to make changes to your device?"(你要允许此应用对你的设备进行更改吗?)。点击 Yes(是)。
  4. 4会打开一个蓝色窗口,标题以 Administrator: Windows PowerShell(管理员: Windows PowerShell)开头。
Windows 界面
1
powershell
Best match
>_Windows PowerShellSystem
Apps
Windows PowerShell ISE
Windows PowerShell (x86)
>_Windows PowerShellSystem
Open
2
Run as administrator
Open file location
Pin to Start
Pin to taskbar
Run ISE as administrator
  1. 1输入 powershell
  2. 2点击 Run as administrator(以管理员身份运行)
开始 → 输入 powershell → Run as administrator。
Windows 界面
User Account Control
Do you want to allow this app to make changes to your device?
1
>_Windows PowerShell
Verified publisher: Microsoft Windows
Show more details
2
Yes
No
  1. 1Windows PowerShell
  2. 2点击 Yes(是)
管理员提示。确认显示的是 Windows PowerShell,然后点击 Yes(是)。

提示: 更快的方法:右键点击开始按钮,选择 Terminal (Admin) 或 Windows PowerShell (Admin)。

粘贴、扫描、批准

  1. 1将这一行粘贴到管理员窗口中并按 Enter。
  2. 2会出现一个二维码和一个链接。用手机扫描二维码,或按住 Ctrl 点击链接。
  3. 3登录 Wantastic 并点击 Claim Device。
  4. 4电脑会自动连接,托盘图标变为绿色,并在 Devices 中显示为 Online。
Administrator: Windows PowerShell
PS C:\Windows\system32> irm https://get.wantastic.app/install.ps1 | iex
Wantastic Agent - Windows Installer
Version: v1.0.54+377f3c0
Installed to C:\Program Files\Wantastic\wantasticd.exe
█▀▀▀▀▀█ ▄▀▄ █▀▀▀▀▀█ (QR code)
wantasticd v1.0.54+377f3c0 is installed and waiting to be added to your account.
Scan the QR code above, or open this link, and approve the device:
https://console.wantastic.app/#desktop?claim_public_key=Vd3hK1oQ…%3D1
It connects by itself as soon as it is claimed (the tray icon turns green).2
  1. 1扫描二维码或按住 Ctrl 点击此链接
  2. 2点击 Claim Device 后即完成
安装程序会显示二维码和认领链接,无需令牌。
控制台视图
Claim Wantastic Device
1
Claim public key
q3Xv…9f2Q= (44 characters)
2
Wantastic server
https://console.wantastic.app
Cancel3Claim Device
  1. 1Claim public key 已自动填写
  2. 2Wantastic server 保持默认即可
  3. 3点击 Claim Device
Claim Wantastic Device。Claim URL 和二维码会自动填入密钥,你只需点击 Claim Device。

注意: 30 秒后仍没有二维码或链接?按 Ctrl+C,然后使用“其他安装方式”中的“使用令牌安装”。

检查是否正常工作

  1. 1打开一个新的 PowerShell 窗口,运行 wantasticd status。它会显示 Status: Connected。
  2. 2托盘图标(时钟旁边)显示连接状态。
  3. 3在控制台中打开 Devices。电脑显示为 Online。
PowerShell(新窗口)powershell
wantasticd status
wantasticd status
PS C:\> wantasticd status
Status: Connected1
Version: v1.0.54+377f3c0
Mode: TUN (wantastic0)
VPN IPs: 10.200.0.14/322
Public key: q7ZkV3m1yH0dTn8pXo2bLwR4sE6uJ9cA1fG5hK8iN0M=
Server: wg.wantastic.app:51820
Exit node: false
Local access: false
Auto update: true
Traffic: ↓ 18.4 KiB ↑ 9.2 KiB
Peers: 2 (direct 1, relay 1)
Uptime: 4m12s
  1. 1隧道已建立
  2. 2你的覆盖网络地址
Status: Connected 加上 VPN IP 表示隧道已建立。
控制台视图
Devices
1
Search by name, IP, or key...
Select AllAdd Device
DeviceTypeVPN IPStatusSeenActions
HQ-CCR2004MikroTik310.88.0.22Online4Now
Branch-hAP-ax3MikroTik10.88.0.3Online12s ago
Tower-12-OpenWrtwantasticd10.88.0.4Online4s ago
NOC-Ubuntu-01wantasticd10.88.0.5Offline3 h ago
  1. 1按名称搜索
  2. 2状态显示 Online
  3. 3覆盖网络 IP 与 wantasticd status 一致
  4. 4Last seen 持续更新
Devices 窗口:新设备以其名称出现,并在几秒钟内变为 Online。

管理服务

  • 你也可以使用 services.msc → Wantastic Overlay Networking。
  • 如果 Windows 防火墙询问是否允许 wantasticd.exe 通信,请点击 Allow。设备之间的直连需要此权限。
  • 如果杀毒软件阻止了隧道适配器,请为 C:\Program Files\Wantastic\wantasticd.exe 添加排除项。
  • 要升级,请使用 wantasticd update。不要在正常工作的电脑上再次运行 install.ps1。
PowerShell(管理员)powershell
Restart-Service wantasticd
Stop-Service wantasticd
Start-Service wantasticd
Get-Service wantasticd

其他安装方式

仅在特殊情况下才需要这些方式。

在 wantastic.app/download 下载 wantastic-setup-windows-amd64.exe(或 -arm64.exe)。

  1. 1打开安装文件,点击“是”,然后点击“安装”。
  2. 2点击时钟旁的 Wantastic 图标,选择 Log in…。
  3. 3浏览器会打开。点击 Claim Device。

批量部署静默安装:wantastic-setup-windows-amd64.exe /VERYSILENT /SUPPRESSMSGBOXES

验证结果

Get-Service wantasticd 显示 Running。
wantasticd status 显示 Status: Connected。
电脑在 Devices 中显示为 Online,重启后依然如此。

常见问题

安装程序立即停止。Administrator privileges are required.install.ps1
原因

PowerShell 未以管理员身份打开。

解决方法

关闭窗口。点击开始,输入 powershell,点击 Run as administrator,再点击 Yes,然后重新粘贴这一行。

PowerShell(管理员)powershell
irm https://get.wantastic.app/install.ps1 | iex
没有出现二维码或链接;安装程序一直在等待。install.ps1 · === Logging in ===
原因

Windows 上较旧的 wantasticd 版本无法显示登录二维码和链接。

解决方法

按 Ctrl+C。在 Account → Secrets 中创建令牌并用它安装。

PowerShell(管理员)powershell
& ([scriptblock]::Create((irm https://get.wantastic.app/install.ps1))) -Token <TOKEN>
登录未完成,服务未启动。Login did not complete (exit 1). The service is installed but not started because this device is not logged in yet.install.ps1
原因

浏览器中的批准未及时完成、被拒绝,或令牌错误。

解决方法

重新登录并批准设备,然后启动服务。

PowerShell(管理员)powershell
wantasticd login --no-connect
Start-Service wantasticd
验证: wantasticd status 显示 Connected。
无法从保存的文件运行脚本。install.ps1 cannot be loaded because running scripts is disabled on this system.PowerShell
原因

PowerShell 策略阻止了已保存的脚本文件。

解决方法

请改用单行安装命令,该策略不会阻止它。

PowerShell(管理员)powershell
irm https://get.wantastic.app/install.ps1 | iex
安装程序重新创建服务时 sc.exe 失败。Failed to create the Windows service (sc.exe exit code 1072).install.ps1
原因

services.msc 或事件查看器仍打开着旧服务。

解决方法

关闭 services.msc 和事件查看器(或重启电脑),然后再次粘贴安装代码块。

PowerShell 无法识别 wantasticd。wantasticd : The term 'wantasticd' is not recognized as the name of a cmdlet, function, script file, or operable program.PowerShell
原因

PATH 的更改只对新窗口生效。

解决方法

打开一个新的 PowerShell 窗口。

无法创建隧道适配器。Error creating interface: …调试日志
原因

杀毒软件或 EDR 软件阻止了隧道驱动。

解决方法

为 C:\Program Files\Wantastic\wantasticd.exe 添加杀毒软件排除项,然后重启服务。

重启powershell
Restart-Service wantasticd
令牌安装在下载后立即失败。Login failed: registration rejected (401): invalid or expired login tokeninstall.ps1 / wantasticd login
原因

令牌错误、已过期、已用完(达到 Max Uses)或已被删除。

解决方法

在 Account → Secrets 中创建新密钥,并用它登录。

修复powershell
& "C:\Program Files\Wantastic\wantasticd.exe" login --no-connect --token <NEW_TOKEN>
Restart-Service wantasticd
认领或登录被拒绝。Login failed: account has reached its device limit — upgrade your plan or remove an existing devicewantasticd login / 控制台
原因

你的套餐设备数量已满。控制台显示 "You have reached the maximum number of devices for your plan."

解决方法

在 Devices 中删除一台不再使用的设备(设备行 → Delete),或升级套餐。然后重新认领。

wantasticd status 打印 Offline。Status: Offline — daemon not running (start: sc.exe start wantasticd)wantasticd status
原因

后台服务已停止、已崩溃或仍在启动中。status 命令不会启动服务。

解决方法

启动服务。

启动服务powershell
Start-Service wantasticd
status 显示 Running (tunnel down),或 peers 显示 (server) 为 HANDSHAKE never。Device health check failed: …服务日志
原因

网络阻止了到中心节点(wg.wantastic.app)的出站 UDP 51820 端口,或 DNS 不可用。

解决方法

在防火墙中放行出站 UDP 51820,然后重启服务。

测试 DNS 并重启powershell
nslookup wg.wantastic.app
Restart-Service wantasticd
验证: wantasticd peers 显示 (server) 有最近的握手(例如 "8s ago")。
本地访问在 Windows 上无法使用。automatic local-access subnet routing is not supported on Windows yet调试日志
原因

本地访问仅适用于 Linux 和 OpenWrt。

解决方法

在该局域网中的一台 Linux 设备上安装 wantasticd,并在那台设备上开启本地访问。

继续阅读

仍然无法解决?

请通过邮件发送设备名称、平台和完整的错误文本。切勿发送令牌、密钥或密码。

hello@wantastic.app