Im aware that winipcfg can return u your current ip address. But i was wondering how would u actually retrieve that.. Also i was wondering how u could take the last part of a ip and change it.. like as in the ip being 169.22.136.44 How would u take the 169.22.136 part away from that and store it in a variable?

Any help would be greatly appreaciated!!
Thanks