Usually, the network mask for a computer lab's network is /24. This way, from a computer connected to the same network, we can find out the IP address of all other computers.
That will remove the requirement of defining the IPs inside the ips.txt file.