Ethernet W5100 RX Data led flashing

Hi i have setup a Client and i have it sending data to a server.
my question is the RX led is always flashing on the Ethernet board but no data is show in the serial monitor
can this data be captured? and sent to the serial monitor?

void clientread()
{
 while(client.available() > 0)
  {
  char inChar1 = client.read(); 
  inData1[Count1] = inChar1, Count1++, inData1[Count1] = '\0'; 
  }
  if(Count1 > 0) {
    Serial.print(inData1); 
    Serial.println(" RX");
    Count1 = 0, inData1[Count1] = '\0';
   }
}

I get this in my serial monitor when it connects. Connected RX

Connecting... Server: xxx.xxx.xx.xx.xxx
Connected
Remote IP: xxx.xxx.xx.xx.xxx
Connected RX

vmansmx5:
can this data be captured? and sent to the serial monitor?

Yes.

How can this be done i have searched for hours and not found anything. . Is this done in the background of the library?

I'll post an answer when you post the rest of your sketch. I can't tell what is wrong if you don't post the whole thing.

Here is the code

#include <SPI.h>
#include <Ethernet.h>
#include <String.h>
byte mac[] = {0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED};
IPAddress ip(192, 168, x, xxx);
IPAddress server(xxx, xxx, xx, xx);
EthernetClient client;
char inChar;
char inData[100];
int Count = 0;
char inChar1;
char inData1[100];
int Count1 = 0;
String msg = String("");
String S1 = "<", E1 = ">";
void setup() 
{
  Ethernet.begin(mac, ip);
  Serial.begin(19200);
  delay(5000);
  Serial.println("connecting...");
  if (client.connect(server, 101)) {Serial.println("connected");}
  else {Serial.println("connection failed");}
}
void loop() 
{
  clientread();
  clientsend();
  if (!client.connected()) {
    Serial.println();
    Serial.println("disconnecting.");
    client.stop();
    // do nothing:
    while (true);
  }
}
void clientread()
{
 while(client.available() > 0)
  {
  char inChar1 = client.read(); 
  inData1[Count1] = inChar1, Count1++, inData1[Count1] = '\0'; 
  }
  if(Count1 > 0) {
    Serial.print(inData1); 
    Serial.println(" RX");
    Count1 = 0, inData1[Count1] = '\0';
   }
}
void clientsend()
{
 while(Serial.available() > 0)
  {
  inChar=(unsigned char)Serial.read(); 
  inData[Count] = inChar, Count++, inData[Count] = '\0'; 
  if(inChar == '\n') {
    msg += String(inData);
    msg.trim();
    if(client.connected()) {
      client.print(S1 + msg + E1);
    }
    Count = 0, inData[Count] = '\0'; msg = "";
    break;
   }
  }
}

It sends the data to a Delphi server program. it receives any data sent from the client ok

Your clientread function has a problem. There is a great probability there won't be anything in the rx buffer. Try this as a test.

void clientread()
{
  while(client.connected())
  {
    while(client.available() > 0)
    {
      char inChar1 = client.read();
      Serial.print(inChar1);
    }
  }
  client.stop();
}

in the serial monitor i get

connecting…
connected
Connected

when i send data the server gets it and the tx rx leds are flashing on the board.

void loop() 
{
  clientread();
  clientsend();
  if (!client.connected()) {
    Serial.println();
    Serial.println("disconnecting.");
    client.stop();
    // do nothing:
    while (true);
  }
}
void clientread()
{
 if(client.connected())
  {
  while(client.available() > 0)
    {
      char inChar1 = client.read();
      Serial.print(inChar1);
    }
  }
}
void clientsend()
{
 while(Serial.available() > 0)
  {
  inChar=(unsigned char)Serial.read(); 
  inData[Count] = inChar, Count++, inData[Count] = '\0'; 
  if(inChar == '\n') {
    msg += String(inData);
    msg.trim();
    if(client.connected()) {
      client.print(S1 + msg + E1);
    }
    Count = 0, inData[Count] = '\0'; msg = "";
    break;
   }
  }
}

Try my example web client code from the playground.
http://playground.arduino.cc/Code/WebClient

I tested your code but its working the same not showing rx data only the Connected message. dose that come from the server?
What i would like is any data coming in to the Ethernet i want to show it in the serial monitor like ACK message from server. is this possible

void loop()
{
  // If using dhcp to get an IP, uncomment the next line
  // Ethernet.maintain();

  thisMillis = millis();

  if(thisMillis - lastMillis > delayMillis)
  {
    lastMillis = thisMillis;

    // Modify next line to load different page
    // or pass values to server
    sprintf(pageAdd,"/",totalCount);

    // sprintf(pageAdd,"/arduino.php?test=%u",totalCount);

    if(!getPage(server,serverPort,pageAdd)) Serial.print(F("Fail "));
    else Serial.print(F("Pass "));
    totalCount++;
    Serial.println(totalCount,DEC);
  }    
}

byte getPage(IPAddress ipBuf,int thisPort, char *page)
{
  int inChar;
  char outBuf[128];

  Serial.print(F("connecting..."));

  if(client.connect(ipBuf,thisPort) == 1)
  {
    Serial.println(F("connected"));

    //sprintf(outBuf,"GET %s HTTP/1.1",page);
    client.print("<test>");
    //sprintf(outBuf,"Host: %s",serverName);
    //client.println(outBuf);
    //client.println(F("Connection: close\r\n"));
  } 
  else
  {
    Serial.println(F("failed"));
    return 0;
  }

  // connectLoop controls the hardware fail timeout
  int connectLoop = 0;

  while(client.connected())
  {
    while(client.available())
    {
      inChar = client.read();
      Serial.write(inChar);
      // set connectLoop to zero if a packet arrives
      connectLoop = 0;
    }

    connectLoop++;

    // if more than 10000 milliseconds since the last packet
    if(connectLoop > 10000)
    {
      // then close the connection from this end.
      Serial.println();
      Serial.println(F("Timeout"));
      client.stop();
    }
    // this is a delay for the connectLoop timing
    delay(1);
  }

  Serial.println();

  Serial.println(F("disconnecting."));
  // close client end
  client.stop();

  return 1;
}

i try get google.com that would always fail
so i tryed a different web address it worked

connecting...connected
HTTP/1.1 200 OK
Date: Thu, 22 Mar 2018 21:05:11 GMT
Server: Apache
Last-Modified: Thu, 30 Jun 2016 14:48:05 GMT
Accept-Ranges: bytes
Content-Length: 111
Connection: close
Content-Type: text/html

<html><head><META HTTP-EQUIV="refresh" CONTENT="0;URL=/cgi-sys/defaultwebpage.cgi"></head><body></body></html>

disconnecting.
Pass 2

this is what i get back from arduino.cc

connecting...connected
HTTP/1.1 200 OK
Server: nginx/1.4.2
Date: Thu, 22 Mar 2018 21:11:57 GMT
Content-Type: text/html
Content-Length: 612
Last-Modified: Wed, 17 Jul 2013 12:51:21 GMT
Connection: close
Vary: Accept-Encoding
ETag: "51e69349-264"
Accept-Ranges: bytes

<!DOCTYPE html>
<html>
<head>
<title>Welcome to nginx!</title>
<style>
    body {
        width: 35em;
        margin: 0 auto;
        font-family: Tahoma, Verdana, Arial, sans-serif;
    }
</style>
</head>
<body>
<h1>Welcome to nginx!</h1>
<p>If you see this page, the nginx web server is successfully installed and
working. Further configuration is required.</p>

<p>For online documentation and support please refer to
<a href="http://nginx.org/">nginx.org</a>.

Commercial support is available at
<a href="http://nginx.com/">nginx.com</a>.</p>

<p><em>Thank you for using nginx.</em></p>
</body>
</html>

disconnecting.
Pass 2

Are you trying to connect to a domain name? If so, you need to evaluate the client connect return value differently.

  if (client.connect(server, 101) ==1) {Serial.println("connected");}
  else {Serial.println("connection failed");}

If the domain name resolution fails, the return value is negative, but evaluates to true (non-zero).

No i am connecting to a server on pc..

vmansmx5:
i try get google.com that would always fail
so i tryed a different web address it worked

How were you trying to connect to google? IP or domain name?

it would not connect to google IP
But would connect to My web server IP
it sends data to my pc server fine but no reply

Dose this deal with RX TCP data client.read();??

@brief This function is an application I/F function which is used to receive the data in TCP mode.
      It continues to wait for data as much as the application wants to receive.

   @return  received data size for success else -1.
*/
int16_t recv(SOCKET s, uint8_t *buf, int16_t len)
{
  // Check how much data is available
  SPI.beginTransaction(SPI_ETHERNET_SETTINGS);
  int16_t ret = W5100.getRXReceivedSize(s);
  if ( ret == 0 )
  {
    // No data available.
    uint8_t status = W5100.readSnSR(s);
    if ( status == SnSR::LISTEN || status == SnSR::CLOSED || status == SnSR::CLOSE_WAIT )
    {
      // The remote end has closed its side of the connection, so this is the eof state
      ret = 0;
    }
    else
    {
      // The connection is still up, but there's no data waiting to be read
      ret = -1;
    }
  }
  else if (ret > len)
  {
    ret = len;
  }

  if ( ret > 0 )
  {
    W5100.recv_data_processing(s, buf, ret);
    W5100.execCmdSn(s, Sock_RECV);
  }
  SPI.endTransaction();
  return ret;
}

It seems you have a problem with your gateway or port.

  if (client.connect(server, 101)) {Serial.println("connected");}

Check the IP address of your router.

But it dose connect and work with different websites. And also connects to my server on pc. So it can't be a connection problem the only time it failed was when I tryed to connect to Google

vmansmx5:
But it dose connect and work with different websites. And also connects to my server on pc. So it can't be a connection problem the only time it failed was when I tryed to connect to Google

Then you have a bad IP for google.