udpate port var