generic port setting method, drop inPortOpts property