Extracts data from a private socket connection and exports it to an excel file.