Add internal_ip segment

Replaces #857
Fixes #826