# OAK4 WiFi

OAK4 does not have built-in WiFi. To connect it wirelessly, plug in our M8 WiFi Adapter or a supported USB WiFi dongle into the
rear USB-C port.

> **M8 WiFi Module in prototype access now!**
> The rugged M8 WiFi adapter for OAK4 is now available in prototype access. Find it in our
> [store](https://checkout.luxonis.com/products/m8-wifi-adapter)
> , and read more in our
> [blog post](https://discuss.luxonis.com/blog/6792-introducing-the-m8-wifi-adapter-for-oak4-in-prototype-access)
> .

## Supported WiFi devices

OAK4 supports the following WiFi devices:

 * M8 WiFi Adapter
 * Any USB WiFi dongle using the rlt881cu or mt7601u chipset.

We currently recommend using our M8 WiFi Adapter.

## Connection setup

 1. Make sure your camera is running [RVC4](https://docs.luxonis.com/hardware/platform/rvc/rvc4.md) v1.30.1 or later.
 2. Connect a supported WiFi Adapter
    * For M8 WiFi Adapter, connect it to the rear M8 auxiliary port on the camera with the included M8 cable.
    * For USB WiFi dongle, connect it to the rear USB-C port on the camera. You might need a USB-A female to USB-C male adapter.
 3. Keep the camera connected with cable (Ethernet) for initial setup.
 4. [SSH into the camera.](https://docs.luxonis.com/hardware/platform/deploy/oak4-deployment-guide/oak4-advanced.md)
 5. Run nmcli to join your WiFi network.

```bash
# From your host computer
ssh root@<camera-ip>

# On the camera
nmcli d wifi connect <ssid> password <password>
```

## Troubleshooting:

If you see:

```text
Error: Failed to add/activate new connection: failure adding connection:
error writing to file '/etc/NetworkManager/system-connections/...':
Read-only file system
```

/etc is mounted read-only. Remount it as read-write and restart NetworkManager, then retry the nmcli command:

```bash
mount -o remount,rw /etc
systemctl restart NetworkManager
```

This can happen after setup flows that switch parts of the filesystem to read-only mode.

## Example usage

For a complete real-world workflow for WiFi USB dongle, see this blog post: [Running ROS2 onboard
OAK4-D](https://discuss.luxonis.com/blog/6695-running-ros2-onboard-oak4-d).
