updating socket port