For future Losanters experiencing similar issues:
I finally found two issues regarding our connectivity:
- Routing Priority of the gateway
- DNS settings
Apparently our gateway was connecting to our VPN and seeing the VPC running the VPN service as the default gateway but due to a less than optimal configuration of the routing priorities sometimes it would connect to the VPN and sometimes it would connect through cellular. When it would connect through cellular it would set a second default gateway (which should never happen) to be the Cellular Provider’s connection point.
The DNS was not set to static so if we connected to the Losant broker initially (via the domain broker.losant.com) it was fine until the IP Address that the domain originally pointed to changed. So the issue with the DNS setting was that the IP Address of the domain wasn’t updated.
I am now setting all of my gateways to static DNS and pointing to google’s DNS servers.