show the correct port number instead of "-1" when no explicit port was given