Try to get hostname first