Source: https://proxvn.io.vn/docs/client

# Use ProxVN: complete client guide

Want someone else to open a website, game or folder from your computer? Install the ProxVN program, called the client, on the machine where that app or folder lives. This guide shows each step, from choosing the installation command to checking the address you give other people.

For normal use, you install only the client on your computer and use an existing public ProxVN server. You do not need to rent or install a server to follow this guide. The person opening a shared web page uses their usual browser. If you want to run the public server yourself, use the separate [server installation guide](https://proxvn.io.vn/docs/self-host).

Keep your computer awake and connected to the Internet. Both your app and ProxVN must keep running: closing either program, shutting down or letting the computer sleep interrupts access. Installing ProxVN does not automatically start your website or game.

**A few words, in plain language**

- **Client:** The ProxVN program you install and run on your own computer. Its command is ` proxvn `.
- **Local server:** Your website, API or game program running on your computer. Later sections may call this the app or backend; it is separate from the public ProxVN server.
- **Tunnel:** The connection that carries visitors’ requests through ProxVN to your running app. It does not move your project to a hosting server.
- **localhost / 127.0.0.1:** An address meaning “this same machine” from the program using it. It is not your public Internet address.
- **Port:** A number identifying which program to reach on a machine. If your page opens at ` http://localhost:3000 `, its local port is ` 3000 `.
- **Config file:** A file of saved settings, such as the server address and port, so you do not have to type them every time.
- **API key:** A private code that lets ProxVN link a tunnel to your account. Keep it secret like a password; it is not the public link you send to visitors.

[Open the plain-language glossary for more terms and examples](https://proxvn.io.vn/docs/glossary).

Use a 9.x client with a 9.x server. Version 8.x clients cannot register with this release. A public URL does not add authentication to your own web application. Publish only services and folders you intend to expose.

## 1. Install the correct client

The installer downloads a matching executable and checks its SHA-256 against the published manifest before installing. Use HTTPS from the intended server. The scripts are available for review before execution.

### Linux / macOS

Prerequisites: curl (or wget for the installer itself), a CA certificate store, sha256sum or shasum, and less to read the script below. On Debian/Ubuntu, install the tools below first. macOS normally already includes curl, shasum and less; do not run apt-get on macOS. If less is unavailable, read /tmp/proxvn-install.sh with cat or a text editor before running sh.

```
sudo apt-get update
sudo apt-get install -y curl ca-certificates coreutils less
```

```
curl -fsSL https://proxvn.io.vn/install.sh -o /tmp/proxvn-install.sh
less /tmp/proxvn-install.sh
sh /tmp/proxvn-install.sh
proxvn version
proxvn --help
```

Press q to exit less. On Linux/macOS, the installer uses ~/.local/bin for a normal user and /usr/local/bin only when run as root; it does not invoke sudo. Termux uses $PREFIX/bin. Read the reported destination. If proxvn is not found in the current shell, use its full path or add the directory to PATH:

```
export PATH="$HOME/.local/bin:$PATH"
command -v proxvn
proxvn version
```

For a normal-user Linux/macOS install in ~/.local/bin, put that export in ~/.bashrc for Bash or ~/.zshrc for Zsh. Choose the startup file for the shell you actually use.

### Windows 64-bit · PowerShell

```
$installer = Join-Path $env:TEMP 'proxvn-install.ps1'
Invoke-WebRequest -UseBasicParsing 'https://proxvn.io.vn/install.ps1' -OutFile $installer
Get-Content -LiteralPath $installer
powershell.exe -NoProfile -ExecutionPolicy Bypass -File $installer
& "$env:LOCALAPPDATA\ProxVN\proxvn.exe" version
```

The installer puts the executable in %LOCALAPPDATA%\ProxVN\proxvn.exe and adds that directory to your user PATH. Open a new PowerShell window, then run proxvn version and proxvn --help. The command above uses a process-only execution-policy override for the inspected installer; it does not permanently lower the machine policy. Managed-device policy can still block execution.

```
Get-Command proxvn
proxvn version
proxvn --help
```

### Android · Termux ARM64

```
pkg update
pkg install curl coreutils python
curl -fsSL https://proxvn.io.vn/install.sh -o "$TMPDIR/proxvn-install.sh"
sh "$TMPDIR/proxvn-install.sh"
proxvn version
proxvn http 3000
```

Only ARM64 Termux is included; this is a command-line binary, not an APK. It installs in $PREFIX/bin. Keep Termux and the local application running and account for Android battery/background restrictions. A phone going to sleep or losing connectivity interrupts access.

## 2. Install and verify SHA-256 from the command line

| Platform | Filename used by the commands |
| --- | --- |
| Linux x86-64 | ` proxvn-linux-amd64 ` |
| Linux ARM64 | ` proxvn-linux-arm64 ` |
| macOS Intel | ` proxvn-darwin-amd64 ` |
| macOS Apple Silicon | ` proxvn-darwin-arm64 ` |
| Windows x64 | ` proxvn-windows-amd64.exe ` |
| Android Termux ARM64 | ` proxvn-android-arm64 ` |

On Unix, uname -s and uname -m identify the OS and architecture: x86_64 maps to amd64; aarch64/arm64 maps to arm64. The following block installs to ~/.local/bin only after one matching manifest entry verifies successfully. Change the filename for macOS/Linux ARM64.

```
uname -s
uname -m
```

```
# Select exactly one filename from the table above.
(
  set -eu
  file=proxvn-linux-amd64
  base=https://proxvn.io.vn
  download_dir=$(mktemp -d)
  curl -fL "$base/bin/SHA256SUMS-client.txt" -o "$download_dir/SHA256SUMS-client.txt"
  curl -fL "$base/bin/client/$file" -o "$download_dir/$file"
  awk -v n="$file" '$2 == n || $2 == "*" n { print }'     "$download_dir/SHA256SUMS-client.txt" > "$download_dir/SHA256SUMS-one.txt"
  test "$(wc -l < "$download_dir/SHA256SUMS-one.txt")" -eq 1
  if command -v sha256sum >/dev/null 2>&1; then
    (cd "$download_dir" && sha256sum -c SHA256SUMS-one.txt)
  else
    (cd "$download_dir" && shasum -a 256 -c SHA256SUMS-one.txt)
  fi
  mkdir -p "$HOME/.local/bin"
  install -m 755 "$download_dir/$file" "$HOME/.local/bin/proxvn"
  "$HOME/.local/bin/proxvn" version
)
export PATH="$HOME/.local/bin:$PATH"
```

Expected checksum result: the selected filename followed by OK. A mismatch, missing entry or download failure is a stop condition; do not install with verification disabled. Checksums protect against corruption and mismatched artifacts; an HTTPS source you trust is still required. On macOS, if a verified download has a quarantine attribute, remove it only from this specific file:

```
xattr -d com.apple.quarantine "$HOME/.local/bin/proxvn"
"$HOME/.local/bin/proxvn" version
```

### Install and verify with PowerShell

```
$base = 'https://proxvn.io.vn'
$file = 'proxvn-windows-amd64.exe'
$dir = Join-Path $env:LOCALAPPDATA 'ProxVN'
$download = Join-Path $env:TEMP $file
$sums = (Invoke-WebRequest -UseBasicParsing "$base/bin/SHA256SUMS-client.txt").Content
$entry = @($sums -split '\r?\n' | Where-Object { $_ -match ('\s\*?' + [regex]::Escape($file) + '\s*$') })
if ($entry.Count -ne 1 -or $entry[0] -notmatch ('^(?<hash>[0-9a-fA-F]{64})[ \t]+\*?' + [regex]::Escape($file) + '[ \t]*$')) {
  throw 'Invalid SHA-256 manifest entry'
}
$expected = $Matches['hash']
Invoke-WebRequest -UseBasicParsing "$base/bin/client/$file" -OutFile $download
if ((Get-FileHash $download -Algorithm SHA256).Hash -ne $expected) { throw 'SHA-256 mismatch' }
New-Item -ItemType Directory -Force $dir | Out-Null
Move-Item -Force $download (Join-Path $dir 'proxvn.exe')
Unblock-File (Join-Path $dir 'proxvn.exe')
& (Join-Path $dir 'proxvn.exe') version
```

These PowerShell commands deliberately use the full executable path. For a stable user PATH, use the installer or add %LOCALAPPDATA%\ProxVN through Windows Environment Variables and reopen PowerShell. Windows ARM and 32-bit binaries are not included in this release.

## 3. Verify an HTTP tunnel end to end

Use three terminals. Python 3 is only for this harmless test page; your real app can be Node, Go, PHP, Python or another HTTP server. Do not serve your home directory or a repository containing .env files. HTTPS terminates at the public server; this example forwards plain local HTTP.

```
# Terminal 1: use a NEW empty demo directory, not your home or source folder.
demo_dir=$(mktemp -d)
printf 'ProxVN client test\n' > "$demo_dir/index.html"
python3 -m http.server 3000 --bind 127.0.0.1 --directory "$demo_dir"
```

Windows terminal 1 (requires Python 3 and its py launcher):

```
$demo = Join-Path $env:TEMP ('proxvn-demo-' + [Guid]::NewGuid().ToString('N'))
New-Item -ItemType Directory $demo | Out-Null
'ProxVN client test' | Set-Content (Join-Path $demo 'index.html')
py -3 -m http.server 3000 --bind 127.0.0.1 --directory $demo
```

Terminal 2: prove the backend is reachable before opening a tunnel. On Windows use curl.exe instead of PowerShell’s curl alias.

```
curl -i http://127.0.0.1:3000/
proxvn http 3000 --host 127.0.0.1 --ui=false
```

The local request must return HTTP 200 and ProxVN client test. In client logs, wait for “HTTP tunnel online” (or the equivalent localized message) and copy the actual https://<assigned-name>.proxvn.io.vn URL. A successful TLS connection alone does not prove the backend works.

Terminal 3, preferably on a different Internet connection: replace the example name with the printed URL.

```
curl -i https://YOUR-ASSIGNED-NAME.proxvn.io.vn/
```

Expect the same HTTP 200 and body as the local request. Keep terminals 1 and 2 running. Ctrl+C in the client terminal stops publishing; Ctrl+C in terminal 1 stops only the sample app. The client command does not start your backend for you.

### Forward a different local host

```
proxvn http 8080 --host 192.168.1.50
proxvn --proto http --host 192.168.1.50 --port 8080 --ui=false
```

These two forms target the same LAN service. The positional port must be a number: use http 8080 --host web, not http web:8080. If the app is inside a container, either publish its port on the host and run this native client on the host, or use a network where the client can resolve/reach that container. localhost inside a container is that container itself. The repository does not ship a dedicated client container image.

## 4. Choose HTTP, TCP, UDP or a protected folder share

| Need | Command | Connect with |
| --- | --- | --- |
| Web / API / webhook | ` proxvn http 3000 ` | HTTPS URL |
| SSH / Minecraft Java / RDP | ` proxvn tcp 22 ` | Assigned host + TCP port |
| Minecraft Bedrock / UDP app | ` proxvn udp 19132 ` | Assigned host + UDP port |
| Folder in browser / WebDAV | ` proxvn share ./public-files --permissions r ` | HTTPS + share username/password |

### TCP: SSH / Remote Desktop

First confirm the service is already listening. Do not install or expose an SSH/RDP/database server merely to test the tunnel. Keep the service’s own authentication, security updates and access controls enabled. A TCP tunnel does not add encryption to a protocol that is otherwise plaintext.

```
proxvn tcp 22 --host 127.0.0.1 --ui=false
```

Read the assigned host:port in the client output. From the other machine, replace 12345 and your-user below; 12345 is an example public port, not the local SSH port.

```
ssh -p 12345 your-user@tunnel.proxvn.io.vn
```

For an existing Windows RDP host, run the client on the host with proxvn tcp 3389. From a second Windows machine use the assigned public port:

```
proxvn tcp 3389 --host 127.0.0.1
mstsc.exe /v:tunnel.proxvn.io.vn:12345
```

### UDP: test datagrams before a game

A UDP tunnel needs outbound TCP to the control port and UDP to the same server port; the public assigned port must also be reachable over UDP. A TCP connect test or curl is not a UDP test. On Linux/macOS/Termux with Python 3, terminal 1 starts a local echo service:

```
python3 -u - <<'PY'
import socket
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.bind(("127.0.0.1", 9999))
print("UDP echo: 127.0.0.1:9999", flush=True)
while True:
    data, peer = s.recvfrom(65535)
    s.sendto(data, peer)
PY
```

$` proxvn udp 9999 --host 127.0.0.1 --ui=false `

Run the next probe from another machine, replacing 12345 with the printed UDP port. Expected output is exactly proxvn-udp. On Windows use py -3 instead of python3 for this one-line probe.

```
python3 -c 'import socket,sys; s=socket.socket(socket.AF_INET,socket.SOCK_DGRAM); s.settimeout(5); s.sendto(b"proxvn-udp",(sys.argv[1],int(sys.argv[2]))); print(s.recvfrom(65535)[0].decode())' tunnel.proxvn.io.vn 12345
```

For a real game, stop the echo demo and forward the game’s actual UDP port, for example proxvn udp 19132 for Minecraft Bedrock or proxvn udp 8211 for a configured Palworld server. Minecraft Java uses TCP, commonly 25565. Games with multiple gameplay/query ports can require multiple tunnels and a changed advertised port; a single command does not configure the game for you.

### Share a dedicated folder safely

```
mkdir -p "$HOME/proxvn-public"
proxvn share "$HOME/proxvn-public" --permissions r
```

Windows equivalent:

```
New-Item -ItemType Directory -Force "$env:USERPROFILE\proxvn-public" | Out-Null
proxvn share "$env:USERPROFILE\proxvn-public" --permissions r
```

The path must be an existing directory. The client starts a private loopback file server automatically, creates an HTTP tunnel, and prints the browser URL, /webdav URL, username and a random password. Default username is proxvn. Omitting --permissions defaults to rw, so explicitly select r for download-only access. rw permits upload, modification and deletion. rwx currently grants the same implemented WebDAV write operations; its execute bit is reserved for future use and does not run uploaded programs. Treat the printed password and logs as private. The share password is separate from your account API key.

Open the printed HTTPS URL in a browser and sign in with the printed share credentials. WebDAV clients use the same credentials and the exact /webdav URL. For a reproducible read-only WebDAV check, curl prompts for the share password instead of saving it in shell history:

```
curl --user proxvn -X PROPFIND -H "Depth: 1" https://YOUR-ASSIGNED-NAME.proxvn.io.vn/webdav/
```

Expect a successful authenticated WebDAV response, normally 207 Multi-Status. Do not pass a secret through --pass in shared command history. Use a separate folder with only intended files; stop the client when sharing ends.

## 5. Link an account and request a stable name

Guest tunnels are available only when the operator permits them. For account-owned tunnels, register/sign in at /console/ on the same service, complete verification if its policy requires it, and copy your account API key from Account. This is an API key, not your Console password or browser JWT.

```
proxvn login YOUR_ACCOUNT_API_KEY
proxvn http 3000 --host 127.0.0.1 --subdomain my-demo --ui=false
```

Replace YOUR_ACCOUNT_API_KEY with your own key and avoid screenshots/history that expose it. login saves the value in ~/.proxvn/config.json (Windows: %USERPROFILE%\.proxvn\config.json); it does not contact the server or prove the key is valid. Registration of the next tunnel is the actual authentication check. The client should report the account in logs. An API key belongs to its own server; do not send one service’s key to an unrelated host.

The requested subdomain must be available and allowed. Inspect the returned URL: unavailable, reserved or too-short requests can fall back to another name. Reserve a permitted name in Console where available, then request that same name with the matching account key. --id changes a display label; it does not reserve a subdomain. No flag selects an arbitrary permanent public TCP/UDP port.

```
proxvn logout
```

logout only removes token from the home config. It does not erase PROXVN_TOKEN, tokens in another JSON file or --token flags, and it does not revoke the key or stop already-running tunnels. Stop those processes and rotate the account API key in Console if a key has leaked; the old key then stops being valid for new authentication.

## 6. Configuration, precedence and language

A normal tunnel uses built-in defaults, then the first valid JSON configuration found, then command-line flags. The search order is: explicit --config (only that path); otherwise PROXVN_CONFIG, proxvn.json beside the executable, proxvn.json in the current directory, and finally ~/.proxvn/config.json. The PROXVN_CONFIG candidate can fall through if unreadable/invalid. Configuration files are not merged with one another.

```
{
  "server": "tunnel.proxvn.io.vn:8882",
  "host": "127.0.0.1",
  "port": 3000,
  "proto": "http",
  "ui": false,
  "lang": "en"
}
```

```
proxvn --config ./client.json
proxvn --config ./client.json http 8080 --host 127.0.0.1
```

Save the JSON as client.json before running these commands. The first uses port 3000 from the file; the second overrides it with HTTP port 8080. A portable proxvn.json beside the binary can hide the token saved by login in the home config. With --config, add token to that same private file or pass PROXVN_TOKEN to the process when account authentication is required. Token precedence is --token, then non-empty PROXVN_TOKEN, then token in the selected JSON. Do not put credentials in a public repository or an example copied to a website.

On Unix restrict a credential-bearing file with chmod 600 and its directory with chmod 700. On Windows restrict the file ACL to your account. JSON must not contain comments or trailing commas; use UTF-8 without a BOM, especially when generating JSON in Windows PowerShell 5.1.

```
proxvn lang en
proxvn http 3000 --lang en --ui=false
```

Language priority is --lang, PROXVN_LANG, lang in the selected config, then locale variables LC_ALL/LC_MESSAGES/LANG. Commands and flags are identical in English and Vietnamese. lang and login always write to the home config. Running proxvn with no arguments opens the wizard only on an interactive terminal when no config is found; after login creates a config, use an explicit command instead of expecting the wizard.

## 7. Connect to your own server and verify its identity

The normal ProxVN client finds its official tunnel address and control-certificate fingerprints through ` https://proxvn.io.vn/api/public/connection `. It first checks that website’s HTTPS certificate the usual way, then checks the separate tunnel-control certificate against the returned fingerprint(s). In plain terms, trusted HTTPS is a safe signpost; the client does not rely on a permanent server IP or a fingerprint hard-coded into the downloaded program. A self-hosted server can publish the same kind of signpost at ` https://your-site.example/api/public/connection `.

For a self-hosted server with public HTTPS and its connection discovery endpoint configured, let discovery provide both the tunnel host:port and trusted control-certificate fingerprint. Replace the example website with your own site. The HTTPS certificate for that website must validate normally; the control-certificate fingerprint is a separate value published by the server.

```
proxvn http 3000 --host 127.0.0.1 --discovery-url https://your-site.example/api/public/connection --token= --insecure=false --ui=false
```

When you supply --discovery-url, the returned tunnel address is used; you do not also need --server. To use your account, replace the empty --token= with an API key issued by this same self-hosted server. A direct --server choice disables default official discovery; add --discovery-url explicitly if you want that direct server to use discovery.

```
proxvn http 3000 --host 127.0.0.1 --server tunnel.example.com:8882 --cert-pin YOUR_VERIFIED_64_HEX_SHA256 --token= --insecure=false --ui=false
```

Replace the example host/port and fingerprint with values verified from the server operator over a separate trusted channel, such as your authenticated SSH session. This direct-connection method explicitly clears any token inherited from login, PROXVN_TOKEN or the selected JSON. --insecure=false ensures an old insecure: true setting cannot turn off verification. If this server requires an account, replace --token= with a key issued by this exact server; never reuse another service’s key. Keep account credentials private.

You can instead put server, cert_pin and insecure: false in your private JSON. An explicit --cert-pin (or config cert_pin) takes precedence over any pins received through HTTPS discovery and any remembered pin. Without an explicit pin, the default official connection uses the validated HTTPS discovery endpoint described above. If you directly set --server for a self-hosted server and do not set --discovery-url or an explicit pin, the client uses trust on first use: it accepts the first control certificate and remembers it under that server address in ~/.proxvn/known_servers.json. That first connection is not an independent identity check. For stronger first-contact verification, use HTTPS discovery or independently confirm and supply --cert-pin. Keep --insecure=false: on a direct unpinned connection, setting it true disables certificate verification.

If a certificate-mismatch warning appears, stop and verify the change with the operator before updating any trust. For discovery, the operator updates the server’s published current/next fingerprints; the client may refresh the authenticated discovery result. For an explicit --cert-pin, change the pin only after independent verification. For a direct first-use connection, change only the matching host:port entry in known_servers.json after verification. Do not delete the whole trust store or use --insecure as a repair. See the [server deployment guide](https://proxvn.io.vn/docs/self-host) for HTTPS discovery setup, DNS and firewall.

## 8. Keep a Linux client running with systemd

This is a user service for the current non-root login. Install the client first, confirm command -v proxvn resolves to the intended executable, and keep the real backend running separately. Stop your foreground client before starting the service to avoid duplicate tunnels. The private config below is a valid guest HTTP example; for an account-owned service, add its token to this same file privately before starting.

```
mkdir -p "$HOME/.config/proxvn" "$HOME/.config/systemd/user"
chmod 700 "$HOME/.config/proxvn"
cat > "$HOME/.config/proxvn/client.json" <<'JSON'
{
  "server": "tunnel.proxvn.io.vn:8882",
  "host": "127.0.0.1",
  "port": 3000,
  "proto": "http",
  "ui": false,
  "lang": "en"
}
JSON
chmod 600 "$HOME/.config/proxvn/client.json"
PROXVN_BIN=$(command -v proxvn)
test -x "$PROXVN_BIN" || exit 1
cat > "$HOME/.config/systemd/user/proxvn-client.service" <<EOF
[Unit]
Description=ProxVN client HTTP tunnel

[Service]
ExecStart="$PROXVN_BIN" --config "%h/.config/proxvn/client.json"
Restart=on-failure
RestartSec=5
UMask=0077

[Install]
WantedBy=default.target
EOF
systemctl --user daemon-reload
systemctl --user enable --now proxvn-client
systemctl --user status proxvn-client --no-pager
journalctl --user -u proxvn-client -n 50 --no-pager
```

The service uses the actual installed binary path and an explicit config; a prior proxvn login is therefore not automatically merged in. Do not use ~ in ExecStart or a relative working-directory-dependent config. Verify the public URL from the logs with curl from another network. To keep the user service alive after logging out, an administrator can enable lingering:

```
sudo loginctl enable-linger "$(id -un)"
loginctl show-user "$(id -un)" -p Linger
```

After editing client.json or upgrading the executable, restart and check logs. Disabling lingering later affects all lingering user services for this account; change it only if that is intended.

```
systemctl --user restart proxvn-client
journalctl --user -u proxvn-client -n 50 --no-pager
systemctl --user stop proxvn-client
systemctl --user disable proxvn-client
```

## 9. Start a Windows client at sign-in

ProxVN does not install a native Windows service. The following uses Windows Task Scheduler for your own signed-in account on Windows 10/11. It starts at sign-in, not before sign-in, and may show a console window. Register from PowerShell with permission to manage tasks; on a locked-down machine use its administrator’s approved policy. First stop any duplicate foreground tunnel.

This creates a separate UTF-8-without-BOM config and restricts its ACL. To use an account/reserved name, add token/subdomain to this same JSON with a private editor before task creation. The local backend also needs its own startup mechanism.

```
$dir = Join-Path $env:USERPROFILE '.proxvn'
New-Item -ItemType Directory -Force $dir | Out-Null
$config = Join-Path $dir 'client-service.json'
$json = @'
{
  "server": "tunnel.proxvn.io.vn:8882",
  "host": "127.0.0.1",
  "port": 3000,
  "proto": "http",
  "ui": false,
  "lang": "en"
}
'@
[IO.File]::WriteAllText($config, $json, (New-Object Text.UTF8Encoding($false)))
$identity = [Security.Principal.WindowsIdentity]::GetCurrent().Name
icacls.exe $config /inheritance:r /grant:r "${identity}:F"
$exe = Join-Path $env:LOCALAPPDATA 'ProxVN\proxvn.exe'
if (-not (Test-Path -LiteralPath $exe)) { throw 'Install ProxVN first' }
$action = New-ScheduledTaskAction -Execute $exe -Argument ('--config "' + $config + '"')
$trigger = New-ScheduledTaskTrigger -AtLogOn -User $identity
$principal = New-ScheduledTaskPrincipal -UserId $identity -LogonType Interactive -RunLevel Limited
$settings = New-ScheduledTaskSettingsSet -ExecutionTimeLimit ([TimeSpan]::Zero) `
  -RestartCount 3 -RestartInterval (New-TimeSpan -Minutes 1) `
  -AllowStartIfOnBatteries -DontStopIfGoingOnBatteries
Register-ScheduledTask -TaskName 'ProxVN client' -Action $action -Trigger $trigger `
  -Principal $principal -Settings $settings -Description 'ProxVN HTTP tunnel' -Force
Start-ScheduledTask -TaskName 'ProxVN client'
Get-ScheduledTask -TaskName 'ProxVN client' | Select-Object TaskName, State
Get-ScheduledTaskInfo -TaskName 'ProxVN client'
```

Check that State is Running and test the public endpoint. Task registration or LastTaskResult alone does not prove a tunnel is active. If it exits, stop the task and run the exact same binary/config in PowerShell to see the error; do not run a second copy while the task is active.

```
Stop-ScheduledTask -TaskName 'ProxVN client'
& "$env:LOCALAPPDATA\ProxVN\proxvn.exe" --config "$env:USERPROFILE\.proxvn\client-service.json"
```

After diagnosing, use Ctrl+C, then Start-ScheduledTask. To disable or remove only this task:

```
Disable-ScheduledTask -TaskName 'ProxVN client'
Stop-ScheduledTask -TaskName 'ProxVN client'
Unregister-ScheduledTask -TaskName 'ProxVN client' -Confirm:$false
```

## 10. Reconnects, saved state and realistic availability

The normal client retries transient connection failures with backoff up to about 30 seconds. It saves tunnel identity in ~/.proxvn/sessions.json, keyed by server, protocol and exact local target. Keeping the same host spelling, port, protocol, OS user and home directory helps restore the same reservation. A changed target or new OS account is a different session. The server decides whether a prior reservation remains valid; saving this file is not a permanent public-address guarantee.

Certificate/pin and incompatible-version failures require intervention rather than insecure retries. Read logs after a network change, server restart or upgrade. A running process can be reconnecting with no public service available. Use an external application-level check, not just process status, for monitoring. Do not run two clients concurrently with the same saved identity and target.

## 11. Troubleshoot in the right order

| Symptom | Concrete check / action |
| --- | --- |
| Command not found / wrong version | ` command -v proxvn ` / ` Get-Command proxvn -All `; ` proxvn version `. Remove an older PATH entry or use the full verified path. |
| Exec format error | ` uname -m `. Choose the correct OS/architecture; do not try to execute a Windows binary on Linux. |
| Permission denied | ` chmod +x ./proxvn-linux-amd64 `. A noexec download filesystem may require installation into an executable location. |
| TLS/control connection timeout | Check DNS and outbound TCP 8882 to tunnel.proxvn.io.vn; verify --server and the server firewall. Website HTTPS success on 443 is a separate check. |
| Certificate changed | Stop, compare the verified control fingerprint, then update only the confirmed server pin. Do not use --insecure. |
| Invalid account key / guest disabled | Check the selected config, PROXVN_TOKEN and server identity. login only saves locally; rotate/re-copy the API key from the correct Console. |
| Tunnel is online but HTTP fails / 502 | ` curl -i http://127.0.0.1:3000/ `. Check --host, local port, backend logs, host-header allowlists and container networking. The tunnel does not start the app. |
| Unexpected HTTP name | Read the actual assigned URL; check name availability, account reservation, API key and a conflicting active client. |
| UDP timeout while TCP is online | Test the local UDP echo, then the public echo. Check UDP to the control port and assigned public UDP port on client network, VPS firewall and provider firewall. |
| Stops after closing the terminal | Use the systemd/Task Scheduler instructions and keep the backend/machine alive; a saved URL is not a background process. |
| Share says directory does not exist | Use an existing quoted absolute directory path; share accepts folders, not individual file paths. |

Collect proxvn version, OS/architecture, the non-secret command/config, timestamp and relevant --ui=false log lines. Redact tokens, passwords, private file names and sessions/known-server state before sending diagnostics. [More troubleshooting](https://proxvn.io.vn/docs/troubleshooting) · [Full CLI flags](https://proxvn.io.vn/docs/cli).

## 12. Update or uninstall without losing control of credentials

Record the executable path and current version, stop its service/task/foreground process, rerun the appropriate verified installer, then restart and check both version and public traffic. Windows cannot reliably replace a running executable. An installer updates only the binary; it does not restart your service or backend. Keep server and clients on compatible 9.x releases.

For Unix uninstall, stop/disable the user service if created, then remove only the binary at the destination reported by the installer. Examples below correspond to the two usual locations; run only the one that matches command -v proxvn, after confirming it is this client.

```
command -v proxvn
```

Only if the reported location is ~/.local/bin/proxvn:

```
rm -- "$HOME/.local/bin/proxvn"
```

Alternatively, only if the verified location is /usr/local/bin/proxvn:

```
sudo rm -- /usr/local/bin/proxvn
```

On Termux the installed binary is $PREFIX/bin/proxvn. On Windows stop/remove the scheduled task if created, close running clients and remove only %LOCALAPPDATA%\ProxVN\proxvn.exe; remove its user PATH entry through Environment Variables if no longer needed. Keep ~/.proxvn (Windows: %USERPROFILE%\.proxvn) unless you intentionally want to discard account config, remembered server pins and tunnel identities. Removing local files does not revoke a server-side API key; revoke/rotate it in Console if needed. Remove only service/task/config files you created for this guide.

[Follow the complete first-project tutorial](https://proxvn.io.vn/blog/run-client) · [Deploy your own public server](https://proxvn.io.vn/docs/self-host)

[← Terms explained simply](https://proxvn.io.vn/docs/glossary)[Commands & options →](https://proxvn.io.vn/docs/cli)
