fixing ip's for automatic connection