change socket connection