Add internal_ip segment

Replaces #857