[core] Fix internal IPv4 detection
Merge pull request #198 from DePierre/ipv4

Fix internal IPv4 detection (related to #37)