configuring socket