Okay, so I’ve figured out how to get my external ip using wget:
wget -q -O – http://whatismyip.com/automation/n09230945.asp
that outputs the ip to the command console. adding > currentip.txt to the end will write it to a text file. But what I want to do is use
netsh interface ip set address name=”Local Area Connection 2″ source=static addr=[WHAT DO I PUT HERE]
Also, a way to make the command prompt not flash would be nice too 🙂
You can use variable to store IP address string. Just create BAT file with following content:
That should do the trick.