if the IP is passed in then use it