A method for controlling access to one or more peripherals connected to a docking station by a host device connected to the docking station, the method comprising: determining, by the docking station, when a new mobile device is connected to a first Universal Serial Bus, USB, Type-C connection input port of the docking station; when a new mobile device is determined to be connected to the first USB Type C connection input port of the docking station, determining, by the docking station, whether the new mobile device is capable of controlling one or more peripherals connected to the docking station; if it is determined that the new mobile device is not capable of controlling the one or more peripherals connected to the docking station, determining that the new mobile device is to be connected as a peripheral; if it is determined that the new mobile device is capable of controlling the one or more peripherals connected to the docking station, determining (38, 40) whether an existing mobile device connected to a second USB Type-C connection input port of the docking station has control of the peripherals as a host device; if it is determined that the existing mobile device connected to the second USB Type-C connection input port of the docking station has control of the peripherals as a host device, determining which of the new mobile device or the existing mobile device has a higher priority to control the peripherals as the host device, wherein the priority of the mobile devices to control the peripherals as the host device is determined based on one or more of: attributes of each of the mobile devices; user input; and a preset priority of each of the mobile devices; and providing (42, 46) the determined host device access to control the peripherals. determining, by the docking station, when a new mobile device is connected to a first Universal Serial Bus, USB, Type-C connection input port of the docking station; when a new mobile device is determined to be connected to the first USB Type C connection input port of the docking station, determining, by the docking station, whether the new mobile device is capable of controlling one or more peripherals connected to the docking station; if it is determined that the new mobile device is not capable of controlling the one or more peripherals connected to the docking station, determining that the new mobile device is to be connected as a peripheral; if it is determined that the new mobile device is capable of controlling the one or more peripherals connected to the docking station, determining (38, 40) whether an existing mobile device connected to a second USB Type-C connection input port of the docking station has control of the peripherals as a host device; if it is determined that the existing mobile device connected to the second USB Type-C connection input port of the docking station has control of the peripherals as a host device, determining which of the new mobile device or the existing mobile device has a higher priority to control the peripherals as the host device, wherein the priority of the mobile devices to control the peripherals as the host device is determined based on one or more of: attributes of each of the mobile devices; user input; and a preset priority of each of the mobile devices; and providing (42, 46) the determined host device access to control the peripherals. attributes of each of the mobile devices; user input; and a preset priority of each of the mobile devices; and