Use private IP address when possible.