fix friend socket port reuse