Android Question Phone will not connect repeatedly to a website.

Martincg

Member
Licensed User
Longtime User
I am writing two apps which update information held on a website. To operate both apps at the same time I run one on a tablet and one one my phone.
Both apps work OK on the tablet.
Neither app works reliably on my phone which at the moment is using my WiFi - the same as the tablet.
I get
ResponseError. Reason: java.net.SocketTimeoutException: failed to connect to www.....after 30000ms

If I try connecting to the site with Chrome on my phone it has the same problem once the app has a problem. Usually the first few connections are successful. There is no problem connecting to the site with my laptop or the tablet.
Is there anything in Android which might cause this problem?
The App tries to connect every 10 seconds. I have set the function which makes the call as a resumablesub so that another connection isn't attempted again until the connection, or connection attempt, has ended.
 

Brandsum

Well-Known Member
Licensed User
Maybe that website is using any throttling method which is blocking your device after first few connections
 
Upvote 0
Top