Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

MyIP - Display internal and external IP address

May
366
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
}
 
this is great, thank you!
 
A few more:

Code:
%@execstr[type https://ifconfig.me/ip] (Google)
%@execstr[type http://dynamicdns.park-your-domain.com/getip] (Cloudflare)

And if you have DIG,

Code:
%@execstr[dig +short myip.opendns.com @resolver1.opendns.com] (Cisco)
 
Back
Top