socket: make sure temporary persists as long as it's in use
socket: set actual port value to 0 , not copy of pointer