read the ip from a external file