need to use net.IPAddr, not net.IP