![]() |
Tool to Manage Static Computer IP
1 Attachment(s)
I made a script to toggle between a set static IP and using DHCP in Windows. I hope it's useful to someone.
You can always find the latest version at manitourobotics/tools/windows/ To setup:
Changelog: 1.2:
|
Re: Tool to Manage Static Computer IP
Oh yea! This will be great. I've had too many problems with our programmers forgetting to reset the IP settings, and too many noobs forget how to do it.
|
Re: Tool to Manage Static Computer IP
|
Re: Tool to Manage Static Computer IP
Quote:
|
Re: Tool to Manage Static Computer IP
1 Attachment(s)
For some reason I can't edit my posts. I made another tool that just shows network interface information.(I hate manually checking the Network adapter every time I'm curious about my current IP status)
|
Re: Tool to Manage Static Computer IP
You could just go Start->Run->type 'cmd' (usually already typed in since I almost certainly used it last) -> ipconfig /all
Same thing for the config. I used to write Batch and Perl scripts to do it, then I got lazy and just remembered the command to type ('netsh interface ipv4 set address "Local Area Connection" static 10.0.33.217 255.0.0.0'). Roughly the same number of mouse strokes (which are highly more time-consuming than keystrokes), especially if I don't have the folder with the batch file open or I'm not on my computer. My best solution is to just use WiFi only for real networks, and use wired Ethernet only for robot networks. But, in case I have to break this, then I can just type netsh and be done. But, if you do still want to do it this way, it should be possible to do entirely in a shell script, reducing dependencies on a foreign machine to zero. |
Re: Tool to Manage Static Computer IP
Quote:
|
Re: Tool to Manage Static Computer IP
Along with Andrew's info you should be able to achieve a toggling script by using an environment variable.
|
Re: Tool to Manage Static Computer IP
Quote:
Quote:
Quote:
Quote:
Quote:
The work is done; feel free to use it or not. |
Re: Tool to Manage Static Computer IP
Been a little curious about this, but haven't gotten around to trying it yet, but can you simply enable DHCP and make reservations for the CRIO MAC address (and camera(s) if needed)?
Seems like an even nicer solution than the batch/script files (which are a huge improvement over manually switching). The only downside is lost learning opportunity for the kids doing it. Save the router config once you do it, and reload the config after each match :) |
Re: Tool to Manage Static Computer IP
|
Re: Tool to Manage Static Computer IP
The driver station program should automatically set your computer's IP for you when you start it up, as long as you've properly configured the team number and NIC. I don't see the need for a different program to set the IP...
|
Re: Tool to Manage Static Computer IP
Our team decided it was easier to just have two network interfaces. We picked up cheap network cards (you can find them for ~$10 each) and simply added a second interface card to our lab computers. Set the static IP on the robot interface and DHCP on the other one.
Bonus tip: You can buy a short ethernet cable and a straight-through double female RJ45 connector to extend your ethernet jack out to the edge of our desk. Helps a lot if your computer sits back under the desk. |
Re: Tool to Manage Static Computer IP
This is great.
Also you may use the 2CAN firmware utility to change ip's and switch between static and DHCP. http://www.crosstheroadelectronics.c...tility_1_4.zip |
| All times are GMT -5. The time now is 08:40 PM. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi