If no IP is given, use client's IP.