I have found the error: hostent* gethostbyname(char *) returns NULL (that is, host cannot be found in the database or The name is not an official host name or alias). But it returns NULL only if I pass ip-address as parameter. If I give a domain name as parameter, it works right via GPRS.
I tried to use gethostbyaddr instead, but it fails the same.
If anybody knows how to help me, hint me the solutuin
