use port specified by -p if -S is used, so that -ps is not essentially needed in this case