IME IP addresses handed out by my phone’s tethering mode aren’t stable, so it’s sorta more of a hassle than just fishing out the little cable and letting my script run. (The device assigns itself a stable IP address on the USB interface.)
Although I haven’t looked at those addresses in some time; perhaps they are more stable now than they used to be.