A method of handling a connection between a thin client device, such as a KVM dummy terminal, and a plurality of host devices. A client connected to a host device transmits a message to the host device requesting that the connection be transferred to a different host device. The invention uses a decentralised model, with no central arbitor, where the hosts control the session and switching functionality using a distributed algorithm. The switching may involve the hosts polling the client where the first host to detect the client connects to it. When a client relinquishes the connection, a different host can connect to it by the same polling method. Alternatively, a host may present a menu of different hosts to the user, and in response to a user selection the connected host disconnects and sends a message to the selected host instructing it to connect to the client device.