Default local_ip to the primary interface's IP