Quantcast
Channel: T&T - Library Functions
Viewing all articles
Browse latest Browse all 10

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 10

Trending Articles