WSL Setup and Networking

🚧 These docs are currently out of date. 🚧

They reflect the Meadowlark (Carbon dev kit) API and may not apply to Carbon systems.
Fully updated documentation will be published when Carbon Alpha ships in April 2026.

Questions? Reach out to us at: support@voyantphotonics.com

⚠️ Important: These instructions are for Windows 11 only. The required mirrored networking mode is not supported on Windows 10.

This guide walks you through setting up a WSL (Windows Subsystem for Linux) environment, installing the voyant-api configuring static IP settings in Windows, and forwarding ports to allow external UDP traffic into your WSL instance.

🐧 Install WSL2 on Windows 11

  1. Open PowerShell as Administrator.
  2. Run the following command to install WSL (WSL2 by default) and the default distribution (Ubuntu):

       wsl --install
    

    See How to install Linux on Windows with WSL for more information.

🔗 Enable Mirrored Networking

⚠️ This is the step that is only supported on Windows 11. See Mirrored mode networking for more information.

  1. Press Windows + R and enter:

    notepad %USERPROFILE%\.wslconfig
    
  2. If the file doesn’t exist, choose to create it.

  3. Add the following content:

    [wsl2]
    networkingMode=mirrored
    
  4. Save the file (Ctrl + S).

🚀 Start WSL

Launch the Ubuntu (or other) app from the Start Menu.

📦 Install the Latest voyant-api Release

  1. Download the latest voyant-api-debian-*.tar.gz from voyant-sdk/releases/latest

    ⚠️ Make sure you don’t have any previous release tarballs or .deb files in your Downloads folder before proceeding.

  2. Copy the tarball from your Windows Downloads folder into your WSL home directory:

    cp /mnt/c/Users/<YOUR_USERNAME>/Downloads/voyant-api-debian-*.tar.gz .
    

    Replace <YOUR_USERNAME> with your actual Windows user folder name.

  3. Extract and install the packages:

    tar -xzf voyant-api-debian-*.tar.gz --one-top-level
    cd voyant-api-debian-*/
    sudo apt update && sudo apt install ./voyant-api*$(dpkg --print-architecture).deb
    
  4. Verify your installation by running:

    voyant_hello_world
    

    You should see something like:

    Welcome to the Voyant Photonics, Inc. API!
    You have successfully installed the voyant-api package with:
    - Proto version: 0.2.1 (Proto)
    - API version:   0.2.1 (API)
    

🌐 Set Up Ethernet Adapter (Static IP)

On your Windows machine, configure your Ethernet interface with a static IP that will be used for port forwarding. Select Edit on the IP assignment in your ethernet interface’s settings.

Example Settings:

  • IP address: 192.168.20.100 (This will be <YOUR_WINDOWS_STATIC_IP> below)
  • Subnet mask: 255.255.255.0
  • Gateway: (Leave blank)

  • Ethernet adapter not connected / interface details

    network_unconfigured

  • Static IP configuration dialog (Manual)

    network_configuration

  • Confirmation of manual IP set

    network_configured

You can now ping your device in both a PowerShell and a WSL terminal with:

ping 192.168.20.20

🔍 Get Your WSL IP Address

In your WSL terminal, run:

ip addr show eth0

Look for an IP address in the format 172.x.x.x (e.g., 172.22.147.139). This is your WSL instance’s internal IP address (<YOUR_WSL_IP>).

🔀 Set Up Port Forwarding (UDP)

Forward UDP port 4444 from Windows to your WSL instance.

  1. Open PowerShell as Administrator.
  2. Run the following command:

    netsh interface portproxy add v4tov4 listenport=4444 listenaddress=<YOUR_WINDOWS_STATIC_IP> connectport=4444 connectaddress=<YOUR_WSL_IP>
    

    Replace:

    • <YOUR_WINDOWS_STATIC_IP> → your Windows static IP (Likely192.168.20.100)
    • <YOUR_WSL_IP> → your WSL internal IP (172.x.x.x from previous step)

🔓 Allow UDP Through Windows Firewall

Run this command to allow UDP port 4444 through the firewall:

netsh advfirewall firewall add rule name="WSL UDP 4444" dir=in action=allow protocol=UDP localport=4444

🛠️ Troubleshooting

If you see the following error:

Error: No such device (os error 19)

then you are failing to open the UDP socket. This means the port forwarding / firewall is not properly configured.

First try restarting the WSL instance by shutting it down:

wsl --shutdown

and relaunch your WSL instance.

If this doesn’t work, evaluate your networking configuration and reach out to us at Troubleshooting Guide.

✅ Next steps

You are now setup to run the voyant-api through WSL. Please refer to the latter half of the Quickstart Guide to start your sensor, visualize point cloud data, record data, etc.


Copyright © Voyant Photonics, Inc.

This site uses Just the Docs, a documentation theme for Jekyll.