Fixed setPort to always set the port even if the filter is not connected