tuning incoming and outgoing ports