Better initialization with auto detection of the hostname