connect to vb.net

Hi,
I’m new with arduino and ethernet shield,in here i want to connect my arduino with vb.net through ethernet,Here is the code of my arduino but i don’t know how to code vb.net to make it connect with arduino.Can anyone help me?
I really appreaciate any help :slight_smile:

[/#include <SPI.h>
#include <Ethernet.h>

byte mac[] = {  0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
IPAddress ip(192,168,1,8);
IPAddress serverIP (192,168,1,1);
int serverPort = 7119;
EthernetClient client ;

void setup() {
  Serial.begin(9600);

  Serial.println("Starting w5100");
  Ethernet.begin(mac,ip);

  Serial.println(Ethernet.localIP());

 if (client.connect(serverIP, serverPort)) {
    Serial.println("connected");//report it to the Serial
    String msg="Hello Server";//Message to be sent
    Serial.println("sending Message:"+msg);//log to serial
    client.println(msg);//send the message
  } 
  else {
    // if you didn't get a connection to the server:
    Serial.println("connection failed");
  }
}

void loop()
{
  // if there are incoming bytes available 
  // from the server, read them and print them:
  if (client.available()) {
    char c = client.read();
    Serial.print(c);
  }

  // if the server's disconnected, stop the client:
  if (!client.connected()) {
    Serial.println();//report it to the serial
    Serial.println("disconnected");
    client.stop();

    // do nothing forevermore:
    for(;;)
      ;
  }
}]

i want to connect my arduino with vb.net through ethernet

Why? You'll need to make your VB.net application emulate the httpd daemon that normally runs on a server. Not a trivial thing to do.