Fixed bug with IP address/hostname mismatch