properly print which port is being used