configuring sockets attmept