Add -ip flag to specify resolve ip address