Included hostname parameter for connect and used it in the notify messaging