Fixed ip address detection in hosts file