Add -ip flag to specify resolve ip address

Perhaps add

```go
if resolveIp.To4() == nil {
  log.Fatalf("Invalid ipv4 address: %s\n", *ip)
}