When connected to a VPN, you cannot cast to any other device. Since you are using a different IP, you are not associated as being on the same Wi-Fi network. To successfully cast an android screen/audio with either option, the second device should also be connected to the VPN network.