Fix ipv4 retrieve if ip address is not in config file

From Claudyus' repository