Only perform IP address related operations if an address has been passed.