update socket in random part