Using extra socket for listing devices as server closes connection after that command.