Fixed issue with connecting to the wrong ip address would lock up the
app