A method for transferring a media session from a companion device to a media hub device connected in a network, the method comprising: detecting a swipe operation executed on the companion device in order to initiate a transfer of the media session; transmitting a scan request from the companion device to media hub devices connected in the network based on the swipe operation; receiving at the companion device a response packet from each media hub device based on the scan request, each response packet including a media access control, MAC, address (S12, S14); calculating in the companion device a received signal strength indicator, RSSI, indicating signal strengths of the media hub devices based on each response packet (S13, S15); determining in the companion device a media hub device having a strongest signal strength based on the calculated RSSI and the MAC address for each media hub device; and transferring over Internet Protocol, IP, a media session executing on the companion device to the media hub device having the strongest signal strength using a stored IP address for the media hub device, wherein the receiving of the response packets and the calculating of the RSSIs are performed after the scan requests have been transmitted, and the determining of the hub media device is performed after the RSSIs of the media hub devices connected in the network have been calculated; wherein each response packet includes a device name, and the method further comprises: periodically transmitting from the companion device an IP multicast device discovery request to the media hub devices (S1, S2); receiving at the companion device a unicast device discovery response from each media hub device based on the device discovery request, each device discovery response including the device name and the MAC address of each media hub device transmitting the device discovery response (S3, S4); and creating in the companion device a table of all the media hub devices in the network, the table including the device names, corresponding IP addresses, and the MAC addresses of the media hub devices, wherein the stored IP address used for transferring the media session to the media hub device is selected from the table. detecting a swipe operation executed on the companion device in order to initiate a transfer of the media session; transmitting a scan request from the companion device to media hub devices connected in the network based on the swipe operation; receiving at the companion device a response packet from each media hub device based on the scan request, each response packet including a media access control, MAC, address (S12, S14); calculating in the companion device a received signal strength indicator, RSSI, indicating signal strengths of the media hub devices based on each response packet (S13, S15); determining in the companion device a media hub device having a strongest signal strength based on the calculated RSSI and the MAC address for each media hub device; and transferring over Internet Protocol, IP, a media session executing on the companion device to the media hub device having the strongest signal strength using a stored IP address for the media hub device, wherein the receiving of the response packets and the calculating of the RSSIs are performed after the scan requests have been transmitted, and the determining of the hub media device is performed after the RSSIs of the media hub devices connected in the network have been calculated; wherein each response packet includes a device name, and the method further comprises: periodically transmitting from the companion device an IP multicast device discovery request to the media hub devices (S1, S2); receiving at the companion device a unicast device discovery response from each media hub device based on the device discovery request, each device discovery response including the device name and the MAC address of each media hub device transmitting the device discovery response (S3, S4); and creating in the companion device a table of all the media hub devices in the network, the table including the device names, corresponding IP addresses, and the MAC addresses of the media hub devices, wherein the stored IP address used for transferring the media session to the media hub device is selected from the table. periodically transmitting from the companion device an IP multicast device discovery request to the media hub devices (S1, S2); receiving at the companion device a unicast device discovery response from each media hub device based on the device discovery request, each device discovery response including the device name and the MAC address of each media hub device transmitting the device discovery response (S3, S4); and creating in the companion device a table of all the media hub devices in the network, the table including the device names, corresponding IP addresses, and the MAC addresses of the media hub devices, wherein the stored IP address used for transferring the media session to the media hub device is selected from the table.