Initiates socket