- May
- 379
- 4
Very basic function that will show the internal IP of your machine (via %_IP) as well as what the internet sees as your address. This would normally be the IP address of your modem or router.
Code:
MyIP {
set MyIPTemp=%@ExecStr[type http://myip.dnsomatic.com]
EchoColor YELLOW %_Host:
echo Internal: %_IP
echo External: %MyIPTemp
unset MyIPTemp
}