Add -ip flag to specify resolve ip address

maybe change to "resolve ipv4 address"