You could also add a test around invalid ips, like a.b.c.d or 10.10.10 or 10.10.10.300