Ethernet server not working :: need help on it


I have written a ethernet server based on the code found in net.

Sakura is not responding for the ethernet frames from client. I am using offline compiler

Code ::

#include <rxduino.h>
#include <Ethernet.h>

#define INTERVAL 100
byte mac[] = {0x08, 0x09, 0x3c, 0x12, 0x34, 0x56};
byte ip[] = {192,168,0,2};

TEthernet Ethernet;
EthernetServer server (80);
void setup()
        Serial.write("Ethernet done \n");
Serial.print("My IP address is: ");

        Serial.write("Server begin done \n");
speed: Baud rate
The port: port to be used (if omitted, use the virtual COM port of USB0)
I use a virtual COM port USB0: SCI_USB0
I use the (TxD) (RxD), pin 30 pin 31 SCI_SCI2A
I use the (RxD) (TxD), pin 26 SCI_SCI2B pin 24. Used to access XBee
I use the (RxD) (TxD), Pin 6 Pin 7 SCI_SCI6B
I use the (TxD) (RxD), pin 1 SCI_SCI0P2x pin 0
Select the one it received for the first time in USB0 or SCI_AUTO pin 0,1
Serial.write("Setup done \n");

void loop()
EthernetClient client;
    client = server.available ();

    if (client) {  // got client?
        boolean currentLineIsBlank = true;
    digitalWrite(PIN_LED0, 1);
            while (client.connected()) {
                digitalWrite(PIN_LED1, 1);

            if (client.available()) {   // client data available to read
                char c =; // read 1 byte (character) from client
                // last line of client request is blank and ends with \n
                // respond to client only after last line received
    digitalWrite(PIN_LED2, 1);
                    if (c == '\n' && currentLineIsBlank) {
    digitalWrite(PIN_LED3, 1);
                        // send a standard http response header
                    client.println("HTTP/1.1 200 OK");
                    client.println("Content-Type: text/html");
                    client.println("Connection: close");
                    // send web page
                    client.println("<!DOCTYPE html>");
                    client.println("<title>GK-Sakura Web Page</title>");
                    client.println("<h1>Hello from GK-Sakura!</h1>");
                    client.println("<p>A web page from the GK-Sakura server</p>");
                // every line of text received from the client ends with \r\n
                if (c == '\n') {
                    // last character on line of received text
                    // starting new line with next character read
                    currentLineIsBlank = true;
                else if (c != '\r') {
                    // a text character was received from client
                    currentLineIsBlank = false;
            } // end if (client.available())
        } // end while (client.connected())
        delay(1);      // give the web browser time to receive the data
        client.stop(); // close the connection
    } // end if (client)
//    Serial.write("LOOP\n");