10-31-2020, 01:29 PM
Using RedPocket a mvno on the US T-mobile network I was able to get messages while the wifi was on by change the wget command to include --bind-address=<wwan0_IPv6>. T-Mobile's network seems to prefer IPv6 connections. wget also has a flag for IP v4 or V6 only.
https://git.sr.ht/~amindfv/janky-mms/tre...mms.hs#L89
Next I'll try to add some code to get the IPv6 address and add it dynamically. Or switch to curl using the --interface wwan0 command like argument. Curl's output of binary is a little different but using the --interface wwan0 did download the MMS message while on wifi.
https://git.sr.ht/~amindfv/janky-mms/tre...mms.hs#L89
Code:
(shell $ "cd "++mmsDir++" && wget --bind-address=<wwan0_IPv6> "++BS8.unpack url)
Next I'll try to add some code to get the IPv6 address and add it dynamically. Or switch to curl using the --interface wwan0 command like argument. Curl's output of binary is a little different but using the --interface wwan0 did download the MMS message while on wifi.