update socket port