Having trouble connecting to RoboRio with MacBook through ethernet


Hey, our team has decided to switch to java after experiencing technical difficulties with LabView at our competition and not being able to get help because no one uses LabView anymore. I did some research online and wrote a java code for our robot but we couldn’t get the MacBook to connect to the robrio. Here’s the error message that comes up after we tries to deploy it (I’m coding on a MacBook and using a ethernet cable):

Task :discoverRoborio
Discovering Target roborio
admin @ roborio-5274-FRC: Failed resolution.
Reason: UnknownHostException
roborio-5274-FRC: nodename nor servname provided, o
r not known
admin @ roborio-5274-FRC.lan: Failed resolution.
Reason: UnknownHostException
roborio-5274-FRC.lan: nodename nor servname provided, or not known
admin @ roborio-5274-FRC.frc-field.local: Failed resolution.
Reason: TimeoutException
Discovery timed out.
admin @ roborio-5274-FRC.local: Resolved but not connected.
Reason: TimeoutException
Discovery timed out.
admin @ Resolved but not connected.
Reason: JSchException
socket is not established
admin @ Resolved but not connected.
Reason: JSchException
socket is not established
1 other action(s) not started.
Run with --info for more details

Task :discoverRoborio FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:discoverRoborio’.

A failure occurred while executing jaci.gradle.deploy.target.discovery.TargetDiscoveryWorker
Target roborio could not be found at any location! See above for more details.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

6 actionable tasks: 2 executed, 4 up-to-date
Missing Target!

Are you connected to the robot, and is it on?

GradleRIO detected this build failed due to not being able to find “roborio”!
Scroll up in this error log for more information.
The terminal process terminated with exit code: 1

Terminal will be reused by tasks, press any key to cl
ose it.


Are you connecting to the radio, or directly to the roborio?

If directly, what IP have you configured for your macbook, can you ping your roborio?

Do you have firewall settings that are preventing the mDNS resolution?

Can you ping the roborio in the terminal, outside of vscode?


I tried both connecting to the radio and roborio. None of them seems to work, IP address is, . I do not what you mean by “ping the roborio”. I’m fairly new to programming and the other programmer doesn’t seem to know what it means either. Please help I’m getting desperate


And i don’t have firewall on


You need to open network utility on your mac and try to ping the rio’s address in the ping tab while you think you are connected to the rio. If you are get a pong (returned bytes) from the Rio but still gradleRio can’t find the Rio I would double check your Rio / wpilib / gradleRio versions and make sure they are up to date.


Okay thanks, I’ll try that tomorrow.


No problem. Also roboRIO-####-FRC.local (#### is your team number) is the address you should use.


I can get a ping from the roborio but where can you find gradlerio?