Auto-select port for DM semantic service