That doesn't get the internal IP address, that gets the IP reported by the server that mIRC connected to.
I'm asking because I'm connected to a router.

$ip would get me 68.9.***.***
I'm looking for something that would tell me my IP is... 192.168.0.2, for example.