As long as your devices are on the same WiFi network, distance within the same household should not influence casting.