Setup socket before serial.