Separate socket configuration and opening