gsm SimpleWriteln not working... HELP!

Hi, i use gsm tcp server and gsm.SimpleWriteln("asd"); not working in loop()

my code:

#include "SIM900.h"
#include "SoftwareSerial.h"
#include "inetGSM.h";

int i=0;
InetGSM inet;
char state[50], msg[50];
int numdata;
int flag=0;         // Makes sure that the serial only prints once the state

void setup() 
{
  Serial.begin(9600);
  Serial.println("GSM Shield ArduiCar");

  //Start configuration of shield with baudrate.
  //For http uses is raccomanded to use 4800 or slower.
  if (gsm.begin(9600)){
    Serial.println("Software Serial begin at 9600");
    gsm.forceON();
    numdata=inet.httpGET("www.klondaikas.lt", 80, "/arduino/newIp.php", msg, 50);  
  }  
    //GPRS attach, put in order APN, username and password.
    //If no needed auth let them blank.
    gsm.SimpleWriteln("AT+CIPMODE=1");
    delay(2000);
    if (inet.attachGPRS("internet.vodafone.gr", "user", "pass")){
      Serial.println("APN Settings ok! Starting GPRS Connection!");
      //Read IP address.
      gsm.SimpleWriteln("AT+CIFSR");
      delay(5000);
      gsm.WhileSimpleRead();
      inet.connectTCPServer(5000);
      delay(5000);
      Serial.println("\nTCP Server waiting at port: 5000");
      Serial.println("\n");}
    else {Serial.println("Error while strarting up server...");
          Serial.println("Please check APN settings");}
      delay(5000);
}

void loop() {
  
  state[50] = gsm.read(msg, 50);   
  Serial.println(state);
  gsm.SimpleWriteln("asd");
  delay(2000);

}

pls help!

When you say it does not work what do you mean exactly ?

i just run this code on Arduino GSM modem and when i post this code in a host

$service_port = '5000';
$address = '83.181.111.183';
$socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
$result = socket_connect($socket, $address, $service_port);

$json = array("dregme" => 0, "temperatura" => 0);

socket_write($socket, 'on');
echo socket_read($socket,100);

nothing happens but if i dont use this:

numdata=inet.httpGET("www.klondaikas.lt", 80, "/arduino/newIp.php", msg, 50);

works fine... but i need use this..