Ever wanted to set your computer's IP so that you would be able to communicate with your robot, but didn't want to hassle with all the dialogues required to do so in Windows? (Control Panel > Network Connections > Your Network Connection > Properties > Internet Protocol (TCP/IP) > Properties ...what a bore!)
Well, I have a solution! teamtoip takes your team # and your network interface name, and automatically sets your IP address and subnet mask!
Command line usage:
Code:
teamtoip [team] "Interface Name"
Where [team] is your team number and "Interface Name" is the name of the interface you want to change the IP of. Generally it is "Local Area Connection" or "Wireless Network Connection" for wired Ethernet or wireless, respectively.
This utility was created mainly for inspectors at competitions, who have to change their IP address for each individual robot they inspect, which is quite inconvenient.
I am posting it here for 2 reasons:
- More eyes looking can catch more issues. If you find anything wrong with my code, or even anything that can be improved upon, don't hesitate to email me.
- This will probably be useful to more than just inspectors. Team members who don't like screwing around with network interface configuration (and don't need the IP address to be set back to what it was before ;) as well as people who don't remember the IP address convention can use this.
So, without further ado, here is the program:
Source:
http://goatsgomoo.arksaw.com/project...p/teamtoip.cpp
Binary [Windows]:
http://goatsgomoo.arksaw.com/project...p/teamtoip.exe