ensure correct ip address is used