Modified the read of the ip text file