Client.connect() issue over mobile network

Hi guys!

Today i experienced an interesting issue. If i share the internet with my phone or with my internet dongle, the client.connect() is not able to send/read any data from the target server.

Did anyone else experience the same?

If i switch back to my landline internet with wifi, the problem is not existing anymore. I have Vodafone on both my dongle and mobile phone.


Here is my code, just in case, but i think this is a standard connect(). (Everything is okay on other machines if i connect to the same mobile wifi, but this.)

client.connect(LIB_DOMAIN, 80);
client.print("GET /target.cgi?s=");
client.println(" HTTP/1.0");
client.println("Host: " LIB_DOMAIN);
client.println("Content-Length: 0");
client.println("Connection: close");

Can you maybe try putting in some Serial.print()/Serial.println() debugging output and see where it gets stuck?

I have the client connect in an if statement at the start… so it waits till its connected before sending the GET request, and maybe a client.flush before stopping too