Fix for IP

Better detector for IP's