Added local ip discovery. Some analyzer thread refactoring.