Quantcast
Channel: Take Command / TCC
Viewing all articles
Browse latest Browse all 1711

MyIP - Display internal and external IP address

$
0
0
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
}

Viewing all articles
Browse latest Browse all 1711

Trending Articles