Skip to content

ALVR client and server on separate networks

Dāvis Mošenkovs edited this page Oct 28, 2019 · 5 revisions

ALVR version Experimental v7 or newer is recommended for this configuration.

To run ALVR client and ALVR server on separate networks (broadcast domains) the following things must be done:

  1. UDP ports 9943 and 9944 of ALVR server must be accessible from Oculus Quest device (i.e. firewall openings must be made to allow Oculus Quest to connect to ALVR server UDP ports 9943 and 9944).
  2. Oculus Quest must be connected to computer and command-line adb shell am startservice -n "com.polygraphene.alvr/.ChangeSettings" --es "targetServers" "10.10.10.10" must be run in Command Prompt to specify IP address of ALVR server (10.10.10.10 must be substituted with IP address of ALVR server; the long line is a single command-line).
  3. Next time when ALVR client will be started it should try to connect to the specified ALVR server. ALVR server should display the client in Server tab (the same way local-network clients are displayed).

ALVR does NOT provide any kind of tunnel, NAT traversal etc. UDP ports 9943 and 9944 of ALVR server (VR gaming PC) must be accessible from ALVR client (Oculus Quest) otherwise this won't work.

Important notes on security!

  • ALVR protocol does not have any encryption or authentication (apart from ALVR client IP address shown in ALVR server and the requirement to click Connect on ALVR server).
  • It is recommended to run ALVR via encrypted tunnel (VPN) over the internet. In case VPN is not an option, access to ALVR server (UDP ports 9943 and 9944) should be restricted by Windows Firewall (only connections from known IP addresses of ALVR clients should be allowed) and ALVR server should not be left running unattended.
  • Warning! SteamVR allows to control desktop from VR headset (i.e. a malicious ALVR client could take over the PC).
  • As the license states ALVR IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND (see the file LICENSE in this GitHub repository for legal text/definition). You are on your own (especially if you run ALVR over the Internet without VPN).