Unable to connect via Mobile Phone hotspot

Hello,

What is causing a: Error: queryTxt ETIMEOUT cluster… when attempting to do development work on an app and using a mobile phone hotspot to connect to the internet and therefore MongoDB? It’s intensely annoying, and there’s very little in the way of documentation or solutions. After trawling through StackOverflow I have added the IP address of my phone to the list of IP addresses under network access settings, added 8.8.8.8, and I already have 0.0.0.0 . People talk about Node versions etc but that’s not the issue at all.

Everything works fine on a nornal wifi network, just when using my mobile hotspot my app refuses to connect to Mongo.

Very grateful for any advice,
Matt

If you are connecting with the mongodb+srv:// protocol it’s probably a DNS issue, i.e. the DNS server of your mobile network provider is unable to resolve SRV records. 8.8.8.8 (Google’s public DNS server) does not have to go in the Atlas access list, you need to set it as the DNS server your computer is using when connected to the mobile network.

2 Likes

Many thanks Massimiliano, that works perfectly

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.