removed constants for IP addresses and getting them from the environment