Skip to content

Running version 0.13? Its documentation is on the 0.13 site. Go to the 0.13 documentation

Ports

Every port where a Web Radio Control station answers, what answers there, and who can reach it. A port is the number a connection arrives on, such as 443 for HTTPS. The station firewall lets in these ports and little else, and the station limits how much one address may ask of it. To change a port or the firewall, see Ports, firewall and IPv6.

This page is for the station administrator who sets up a router, another firewall or a network of their own.

The ports

PortProtocolWhat answers thereWho can reach it
8443TCP and UDPThe remote control port: Web Radio Control in the browser, its API and the audio, over HTTPS and HTTP/3.Anyone the firewall lets in: the local network, and the internet where your router forwards a port to it.
8080TCPThe setup page, over plain HTTP. Also the log API over plain HTTP, while an administrator turns it on.The local network of the station only, and your devices on the private network while it is on.
443TCP and UDPThe standard HTTPS port, led to the remote control port.As 8443, while Offer the standard ports, 443 and 80 is on.
80TCPThe standard HTTP port, led to the setup page.As 8080, while Offer the standard ports, 443 and 80 is on.
The public portTCP and UDPA public port of its own that your router forwards, such as 10443 or 8012, led to the remote control port.Anyone the firewall lets in, while remote use has such a port.
41641UDPTailscale, for your devices on the private network to connect to the station directly.While the private network is on.
22TCPSSH, to log in to the station control computer, as the Linux user wrchost on a Raspberry Pi (see SSH).The local network only, or anywhere, as Answer SSH from says.

8443 and 8080 are the defaults. Settings › Station › Ports & addresses moves them, each to a port from 1024 to 65535 that no other program on the station control computer holds.

The local network is every private address: 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, the link-local 169.254.0.0/16, and the IPv6 link-local and unique local addresses (fe80::/10, fc00::/7), with the networks of the station control computer itself. The Firewall & SSH page calls it The station’s network.

How browsers reach the station from the internet, and which port to forward on your router, is in Use the station from the internet.

The standard ports, 443 and 80

With Offer the standard ports, 443 and 80 on, the addresses of the station need no port: https://shack.local/ for Web Radio Control and http://shack.local/ for the setup page. The station control computer leads 443 to the remote control port and 80 to the setup page. The station keeps answering on its own ports beside them, should a browser or a network not reach 443 or 80.

  • On a Raspberry Pi installed from the image, the standard ports are on from the first start.
  • On a computer installed with the install bundle, they are off until you turn them on. The station first checks that no other program on the computer holds 443 or 80, such as a web server, and names it if one does.

Ports only the station control computer uses

These answer only inside the station control computer, never on the network, and no setting may take them:

  • 8010: the WRC host service, which carries out what Web Radio Control asks of the computer, such as its network, firewall and time servers.
  • The Hamlib programs of the radios, rotators and amplifiers, and the audio streams of the station.

What the firewall lets in

The station firewall is the inet wrc table of nftables, loaded as the station control computer starts, before its network comes up. Besides the ports above, it lets in:

  • the replies to connections the station makes itself;
  • the ICMP and ICMPv6 messages a network needs;
  • the replies of DHCP and DHCPv6, which give the station its address;
  • mDNS from the local network, so that .local names work;
  • with UPnP on, the replies of your router to the requests of the station (UDP from port 1900, from the local network).

Everything else is dropped. The firewall never touches forwarding, so other containers on the computer keep working as before.

On a computer where ufw or firewalld runs, or the nftables service is enabled, the station leaves the firewall to it and loads only the redirects of the standard ports and of a public port. Open the ports above in that firewall. The Firewall & SSH page lists them for your station, with the commands for ufw and firewalld (see The firewall).

Limits on each address

The station server limits what one address may take, so that one misbehaving browser or application can’t hold up everyone else. An IPv6 network of /64 counts as one address, as one household holds one.

WhatThe limit
Connections open at once64 from one address, 512 in all. One more is closed as it arrives.
Control connections not yet logged in16 from one address, 128 in all. One that hasn’t logged in within 30 seconds is closed.
Requests to the API20 a second from one address, after a burst of 100. Past that, the station answers Too many requests and asks the client to wait.
Audio sessions16 for one user at once.
HTTP/3 connections16 from one address. When new connections come faster than ten a second, each client first proves its address.
A slow requestIts headers must arrive within 10 seconds, and the whole request within 15.

Programs running on the station control computer itself are not limited.

What the station tells browsers

  • Not to show its pages inside another site, and not to guess what kind of content a page is.
  • To use HTTPS only, for a day at a time, while the certificate of the station comes from a public certificate authority, as with a wrcs.tech domain name or your own domain. Never with the station certificate of its own, as a browser would then refuse it without a way past its warning.
Last updated on