Get a local IP address from a specified network range