enable socket connection