Add -ip flag to specify resolve ip address

rename to resolveIP (IP in caps, which is more common go style)