IP Cam Still Uses WIFI

Hello there,
I’m trying to connect smartphone IPcameras to pc. When the smartphones are connected to mobile data the IPcamera uses the IP given by Zerotier, however the second I turn on wifi, it switches to the wifi ip and doesn’t go thru the Zerotier VPN, tried on 3 phones with different networks, with more than one IP camera app. Any ideas?