add auto detect the port