Networking¶
In FRC, your robot's radio, robot controller (Systemcore or RoboRIO), coprocessors, and driver's station all communicate over a local network.
FRC Team Networking & IP Schema¶
Whether you are an original legacy team or a brand new rookie, FIRST sets up the robot network on a 10.TE.AM.X IPv4 address format.
Understanding how to convert your team number into this IP address is crucial for static IP configuration and network troubleshooting. Use the calculator below to find your IPs instantly, or read on to learn the math behind the routing.
FRC IP Calculator
How the FRC IP Schema Works¶
The standard FRC IP notation is 10.TE.AM.X, where the team number determines the second and third octets.
Instead of treating the team number like a string of text and worrying about leading zeros, the easiest way to understand the schema is mathematically:
- Octet 2: Divide your team number by
100and round down to the nearest whole number. - Octet 3: Take the remainder of your team number divided by
100(modulo).
This mathematical rule automatically scales perfectly across 1-digit, 4-digit, and 5-digit team numbers.
The maximum team number using this current system is 25599.
Examples by Team Length¶
1 & 2-Digit Teams
Because the team number is less than 100, the second octet is always 0.
- Team 8:
8 / 100 = 0, remainder8. IP is10.0.8.2 - Team 16:
16 / 100 = 0, remainder16. IP is10.0.16.2
3-Digit Teams
- Team 254:
254 / 100 = 2, remainder54. IP is10.2.54.2
4-Digit Teams (Standard)
- Team 2168:
2168 / 100 = 21, remainder68. IP is10.21.68.2
5-Digit Teams (Overflow)
For 5-digit teams, the "thousands" and "hundreds" flow cleanly into the 2nd octet.
- Team 10256:
10256 / 100 = 102, remainder56. IP is10.102.56.2
Device Endings¶
The 4th (and final) octet is what identifies the specific piece of hardware on your robot's subnet. FIRST reserves these addresses as follows:
.1– The Robot Radio (OpenMesh, OM5P, or VH-109).2– The roboRIO.4– The FMS (Field Management System).5through.255– Assigned to your Driver Station laptops, coprocessors (like a Raspberry Pi, Orange Pi, or Limelight), and IP cameras.
The USB Tether Connection¶
If you connect a USB-B cable directly from your laptop to the roboRIO, a virtual network interface is created. In this configuration, the roboRIO always has a fixed IP address:
- USB IP Address:
172.22.11.2
Drawbacks of USB Connection¶
While the USB tether is a great fallback, it has several limitations:
- Subnet Isolation: The USB connection is a point-to-point link. When connected via USB, your laptop cannot "see" other devices on the robot's Ethernet network, such as Limelights, Raspberry Pis, or IP Cameras. You can only communicate with the roboRIO itself.
- Driver Dependencies: This connection relies on "Ethernet over USB" (RNDIS) drivers. If these drivers are missing or corrupted on your Windows laptop, the connection will fail even if the cable is functional.
- Mechanical Reliability: USB-B ports are not as robust as shielded Ethernet. In a high-vibration environment or while the robot is moving, the cable is easily jarred loose.
- Cable Length: USB standards limit cable length significantly compared to Ethernet, making it difficult to use for long-distance testing.
A Note on mDNS¶
While configuring static IPs is incredibly useful for network stability and troubleshooting at competition, modern FRC control systems utilize mDNS (Multicast DNS).
If you are typing an address into a browser or SSH client to reach your roboRIO, simply typing roborio-[TEAM]-FRC.local (e.g., roborio-254-FRC.local) will usually find the robot dynamically without needing to worry about IPv4 subnets and octets.
On the Field¶
On the field and during competition, you will not connect to your robot directly over ethernet/wi-fi or the USB port. Instead, you will connect your driver's station to the field ethernet, and your robot (when powered on) will automatically connect to the field network wirelessly. This system is called the FMS, or Field Management System.