private void CheckIp(object unused) { try { log.Debug("Checking IP..."); string newIp = IPUtil.GetIp(); if (!_currentIp.Equals(newIp, StringComparison.OrdinalIgnoreCase)) { NotifyIpChanged(_currentIp, newIp); _currentIp = newIp; } } catch (Exception ex) { log.Error("Unhandled exception when checking the IP", ex); } }