Network Troubleshooting
Steam Headless assigns each container its own dedicated local IP address using Docker's macvlan network driver. While this eliminates port conflicts and allows multiple independent containers to share a single host, it introduces specific routing and firewall requirements.
Symptoms on this page
| What are you seeing? | Jump to Section |
|---|---|
Running curl or ping from the Docker host fails with No route to host | 1. Host cannot connect to container web interface (No route to host) |
| Other devices on your local network cannot ping or connect to the container | 2. Other LAN devices cannot reach container |
| Web portal loads and login works, but the stream stays on "Connecting..." | 3. WebRTC UDP port 8483 blocked by firewall |
| Moonlight fails to discover the container or pairing requests time out | 4. Sunshine and Moonlight network ports |
Browser displays NET::ERR_CERT_AUTHORITY_INVALID or SEC_ERROR_UNKNOWN_ISSUER | 5. Browser SSL/TLS certificate warnings |
1. Host cannot connect to container web interface (No route to host)
This occurs due to a Linux kernel security boundary. In macvlan bridge mode, the host kernel disallows direct traffic between the host's physical network interface and child macvlan containers.
What you see
- Other machines on your local network can ping and open
https://192.168.1.90:8483without issue. - Running
curlorpingfrom the Docker host itself fails:$ curl -k https://192.168.1.90:8483/api/v1/healthcurl: (7) Failed to connect to 192.168.1.90 port 8483: No route to host
How to confirm this issue
Check route resolution on the Docker host:
ip route get 192.168.1.90
If the route points directly out of your physical interface (for example, dev eno1 src ...), the kernel drops the packet before it reaches the child container.
Step-by-step resolution
To enable communication between the host and its macvlan containers, create a dedicated macvlan "shim" interface on the host. This acts as a sibling macvlan interface, allowing the host to route traffic through the kernel bridge.
Option A: Using NetworkManager (nmcli - recommended for Fedora Server and Ubuntu Server)
Replace eno1 with your host's physical network interface, 192.168.1.99 with an unused IP address on your subnet, and 192.168.1.90/32 with your container's IP (or CIDR block covering all containers):
# 1. Create the persistent macvlan shim connection
sudo nmcli connection add type macvlan \
con-name steam-headless-macvlan-shim \
ifname sh-macvlan-shim dev eno1 mode bridge \
ipv4.method manual ipv4.addresses 192.168.1.99/32 \
ipv4.routes '192.168.1.90/32,192.168.1.91/32' \
ipv6.method disabled connection.autoconnect yes
# 2. Activate the shim interface
sudo nmcli connection up steam-headless-macvlan-shim
Option B: Manual setup (iproute2 - non-NetworkManager hosts)
If your host does not use NetworkManager:
# 1. Create and configure the macvlan shim interface
sudo ip link add sh-macvlan-shim link eno1 type macvlan mode bridge
sudo ip addr add 192.168.1.99/32 dev sh-macvlan-shim
sudo ip link set sh-macvlan-shim up
# 2. Add explicit route to container
sudo ip route add 192.168.1.90/32 dev sh-macvlan-shim
Option C: Unraid host access
On Unraid:
- Open Settings → Docker.
- Stop the Docker service.
- Change Host access to custom networks to Enabled.
- Start the Docker service.
Verifying the shim
Verify that the route now travels over sh-macvlan-shim:
ip route get 192.168.1.90
curl -k https://192.168.1.90:8483/api/v1/health
Expected output: ip route get displays dev sh-macvlan-shim, and curl returns HTTP 200 with JSON status.
Removing the shim
To cleanly remove the NetworkManager shim connection:
sudo nmcli connection delete steam-headless-macvlan-shim
2. Other LAN devices cannot reach container
If client machines on your local network cannot ping or reach the container IP, check the common causes below.
Case 2.1: Incorrect parent network interface
This happens when the parent interface specified in your Compose file does not match your host's physical network adapter.
What you see
- The container starts without Docker errors, but its assigned IP address cannot be reached by any device on the network.
- Ping requests to the container IP time out.
How to confirm this issue
Find the active default network interface on your host:
ip -4 route show default
Compare the reported device name (for example, dev eno1) against the parent: line under networks: in docker-compose.yml.
Step-by-step resolution
Update docker-compose.yml with the correct interface name:
networks:
session-lan:
driver: macvlan
driver_opts:
parent: eno1 # Match your physical host interface
Recreate the container network:
sudo docker compose down
sudo docker compose up -d
Case 2.2: IP address conflict with router DHCP
This happens when a container IP falls within your router's automatic DHCP pool and another network device is assigned the same address.
What you see
- Connection to the container works intermittently or drops randomly during gameplay.
- Your router administrative logs report duplicate IP address detections or ARP clashes.
How to confirm this issue
Check for duplicate ARP replies across the local subnet:
sudo arping -I eno1 -c 3 192.168.1.90
If multiple MAC addresses respond, an IP conflict exists.
Step-by-step resolution
- Check your router's DHCP pool range in its administrative web interface (for example,
192.168.1.100to192.168.1.254). - Assign container IP addresses outside the active DHCP pool (for example,
192.168.1.90to192.168.1.94). - Alternatively, add a static MAC and IP reservation for the container in your router's DHCP configuration.
Case 2.3: Wi-Fi host or managed switch port security
This happens because standard Wi-Fi does not support multiple MAC addresses on a single client connection, or because a managed switch enforces port security.
What you see
- The container receives an IP address, but no packets arrive or the physical switch port shuts down.
- On wireless hosts, the container is unreachable from the rest of the local network.
How to confirm this issue
- Wi-Fi hosts: Check whether your host machine is connected via Wi-Fi (
ip link showshowingwlan0or similar). Standard 802.11 Wi-Fi frames use 3-address headers and cannot negotiate virtual macvlan MAC addresses. - Managed switches: Check your switch logs for port security violations or MAC address limit exceed errors.
Step-by-step resolution
- For Wi-Fi hosts: Connect the host using a wired Ethernet cable. If a wireless connection is mandatory, switch from macvlan to Host Networking.
- For managed switches: Disable the MAC address limit or port security feature on the specific switch port connected to your Steam Headless host.
3. WebRTC UDP port 8483 blocked by firewall
The web streaming portal uses TCP port 8483 for web authentication and signalling, and UDP port 8483 for real-time WebRTC media. If UDP 8483 is blocked, video cannot stream over WebRTC.
What you see
- The web interface loads in your browser and login succeeds without errors.
- The desktop portal displays a loading spinner and remains stuck on "Connecting...".
- The stream drops back to WebSocket mode or fails to connect entirely.
How to confirm this issue
- On the host, verify that the container is listening on both TCP and UDP port 8483:
sudo ss -tlpn | grep 8483 # Check TCPsudo ss -ulpn | grep 8483 # Check UDP
- From a client machine on your network, test UDP reachability:
nc -u -z -v <CONTAINER_IP> 8483
Step-by-step resolution
Open TCP and UDP port 8483 on your host firewall:
Fedora Server and RHEL (firewalld):
sudo firewall-cmd --add-port=8483/tcp --permanent
sudo firewall-cmd --add-port=8483/udp --permanent
sudo firewall-cmd --reload
Ubuntu Server and Debian Server (ufw):
sudo ufw allow 8483/tcp
sudo ufw allow 8483/udp
sudo ufw reload
4. Sunshine and Moonlight network ports
Sunshine provides high-performance streaming for Moonlight clients using its own dedicated set of TCP and UDP ports. If these ports are blocked, Moonlight cannot discover or connect to the container.
What you see
- Moonlight clients fail to discover the gaming container automatically on your local network.
- Manually adding the container IP in Moonlight shows the host as offline or pairing PIN requests time out.
How to confirm this issue
- Confirm that the Sunshine web management interface is reachable through the web proxy:
https://<CONTAINER_IP>:8483/sunshine
- Check that the Sunshine service is active inside the container:
docker exec -it steam-headless-a systemctl status steam-headless-sunshine.service
Step-by-step resolution
- Ensure the following Sunshine ports are permitted through any local or host firewalls:
- TCP:
47984,47989,47990,48010(Web administration, pairing, session management) - UDP:
47998,47999,48000,48002,48010(Video, audio, control, microphone)
- TCP:
- When using macvlan networking, traffic arrives directly at the container's virtual network interface without passing through Docker NAT, so host-level port forwarding is not required.
- Open
https://<CONTAINER_IP>:8483/sunshinein your browser, browse to the PIN tab, and enter the PIN displayed by your Moonlight client to complete pairing.
5. Browser SSL/TLS certificate warnings
Steam Headless automatically generates a self-signed TLS certificate on first boot so that HTTPS and browser APIs (such as WebRTC, WebCodecs, and Pointer Lock) function securely on local IP addresses.
What you see
- When opening
https://<CONTAINER_IP>:8483, Chromium browsers displayNET::ERR_CERT_AUTHORITY_INVALID("Your connection is not private"). - Firefox displays
SEC_ERROR_UNKNOWN_ISSUER("Warning: Potential Security Risk Ahead").
Step-by-step resolution
For local network use (quickest):
- Click Advanced on the browser warning page.
- Click Proceed to
<CONTAINER_IP>(unsafe) (Chromium) or Accept the Risk and Continue (Firefox). - Once accepted, browser streaming, input capture, and clipboard synchronisation will function normally.
For custom domain certificates (production):
You can supply your own valid TLS certificates by mounting them into /var/lib/steam-headless/shui/tls/ inside the container:
volumes:
- /path/to/fullchain.pem:/var/lib/steam-headless/shui/tls/cert.pem:ro
- /path/to/privkey.pem:/var/lib/steam-headless/shui/tls/key.pem:ro
Restart the container to apply your certificates:
sudo docker compose down
sudo docker compose up -d
Next steps
With networking verified and ports reachable:
- If the video stream does not display or stutters, check GPU and Hardware Encoding Troubleshooting.
- For WebRTC performance tuning and Moonlight streaming issues, see Browser and Moonlight Streaming Troubleshooting.