Automatically configuring your IPv4 settings

Discovered this useful windows batch command and thought I’d share.

netsh int ip set address “wireless network connection” static 10.37.56.25 255.0.0.0

Change the 10.37.56.25 to your appropriate team number (If you’re on team 1234, you’d have 10.12.34.25).

Save it as a batch file, run it as administrator, and now your drive laptop is set up for connecting to the robot! If anyone knows the appropriate command to set it back to obtaining an IP address automatically, please share :slight_smile:

Good luck at the competitions!

Or you could just go to the driver station, go to setup, and type in your team number again. It does the exact same thing but requires less memorization. :wink:

I just set up our desktop background so that the batch file is a really large shortcut - Its easier for our drivers to click a large icon if I forget to change the IP setting back :wink:







To set it back, just follow the previous instructions, but the command should be:

netsh int ip set address "wireless network connection" dhcp

Thanks to all who contributed to this thread.

These are really handy tips for anyone who needs to switch back and forth between robot networks, and an internet connection.

Thanks Fletch, this’ll save me so much time! :slight_smile:

And as said by Mr. Lim, thanks for everyone’s posts! Hopefully this’ll help loads of teams that want to do the same thing that I want to do. After all it is nice to just switch between robot connection to internet in two clicks to google an obscure error :smiley:

Just an FYI/PSA. This command will only switch the wireless interface on the laptop. At most regional events, you will not be provided wireless internet access, and will not be allowed(by FRC rules, and the way the robot radio is configured) to connect to the robot wirelessly. For testing purposes at your school/workshop, this will work nicely, but please help the field volunteers at the event by keeping the wireless on your driver station laptop OFF and disabled.

An even better solution might be to setup the DHCP server on the D-Link. It’s in the advanced section as “DHCP Server” in the left sidebar.

Of course, this won’t work during competitions since access to the admin panel is locked.