Create socket connections