I really need help here ...
I have a simple Android application that connects to my server to receive data via HTTPS.
Everything worked fine until I connected to the same server from another device (iOS or Android). I start to receive timeouts or connection denials or other errors depending on the library used (sometimes SSL acknowledgment)
I tried 2 Android apps on the same router - failed
I tried Volley, Retrofit, the normal http library - failed
If one device is connected via a cellular network and one is connected to Wi-Fi, it works fine. However, I have seen cases when it does not work even using 2 devices connected to the cellular network, and not Wi-Fi.
Easy to reproduce. one application is working fine. as soon as I do the operation on another device. the first application will not be able to connect.
An iOS application using the same api / server is working fine. without crashing
I skipped wirehark in an Android application in case of failure and got the following:
70 47.073286 10.0.0.1 10.0.0.138 ICMP 120 Destination not available (not available for the port)
Looks like port issues. I am no longer sure if this is a server problem or a client problem. The iOS app works great. no questions. Android only.
I tried:
System.setProperty("http.keepAlive", "false");
I tried setting the connection :close http header "nothing works ...
Any idea would be appreciated ...
source share