Go to Post *referring to Team Titanium's 2012 robot* If only it could play guitar hero at the same time. sigh. - rsisk [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 01-17-2009, 05:31 PM
DtD's Avatar
DtD DtD is offline
I hope the watchdog starves!
AKA: Pathogen David
FRC #2410 (The Metal Mustangs (Merged from 2334, Hazmat Robotics))
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Kansas
Posts: 86
DtD will become famous soon enoughDtD will become famous soon enough
Batch files to switch between DHCP and Static IP

I made these batch files to switch between Static IP and DHCP in Windows. I use them because I use my laptop's Wireless at school, and wired to program our robot, but at home I use the Wired.

To use them, just paste the commands in notepad and save as a .bat (EG: "cRIO Mode.bat" or "Internet Mode.bat")

cRIO / Static IP Mode:
Code:
@echo off
netsh interface ip set address name="Local Area Connection" static 10.23.34.6 255.0.0.0 10.23.34.4 1
pause
NOTE: You need to change the addresses to your team number. We are 10.23.34.*, but you probably aren't!

DHCP Mode:
Code:
@echo off
netsh interface ip set address "Local Area Connection" dhcp
pause
~DtD
PS> If you typically use a static IP when not talking to your robot, and you need to configure DNS servers too, then use these commands:
Code:
netsh interface ip set dns "Local Area Connection" static 208.67.222.222
netsh interface ip add dns "Local Area Connection" 208.67.220.220 index=2
That sets it to use OpenDNS...
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Switching between Hybrid and User-Controlled Zyklon Programming 3 02-13-2008 08:30 AM
interference between wires and connectors Dan Zollman Inventor 5 12-18-2006 03:11 PM
Relationship between wheel type and power Nitroxextreme Technical Discussion 3 01-13-2006 09:30 PM
Free and easy to use software for batch image watermarking/text stamping? Elgin Clock Computer Graphics 2 06-27-2005 05:25 PM
Toggle between in and out (Pneumatics) RAWdealer59 Programming 7 02-17-2003 11:32 AM


All times are GMT -5. The time now is 08:40 PM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi