Sending data between two arduino yun via wifi

Thank you guys very much! now it works :slight_smile: here is the code for people with the same problem:
Server:

#include <YunServer.h> 
#include <YunClient.h>
#include <Console.h>
YunServer server;
void setup() {
  Bridge.begin();
  server.begin();
  Console.begin();
}

void loop() {
  YunClient client = server.accept();
  if(client){
    while(client.available()<1);
    Console.println(client.read()); // this should print out 42[/color]
    client.stop();
  }
}

Client:

#include <YunClient.h>
IPAddress server(192,168,0,100);  //Because Yun1 has this IP adress
void setup() {
  pinMode(13,OUTPUT);
  Bridge.begin();
}

void loop() {
  YunClient client;
  if(client.connect(server,5555)){
      client.write(42);
  }
  client.stop();
  delay(500);
}