.bat file to update loopback controller to external ip
Posted
by
cable729
on Stack Overflow
See other posts from Stack Overflow
or by cable729
Published on 2011-01-06T03:49:13Z
Indexed on
2011/01/06
3:54 UTC
Read the original article
Hit count: 222
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 :)
© Stack Overflow or respective owner