IP validation on clients and server