# Client got end-of-stream

**URL:** <https://discourse.processing.org/t/client-got-end-of-stream/17486>\
**Category:** Libraries\
**Created:** [January 31, 2020, 8:13pm UTC](https://discourse.processing.org/t/client-got-end-of-stream/17486 "2020-01-31T20:13:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bento](https://avatars.discourse-cdn.com/v4/letter/b/7bcc69/32.png) [@bento](https://discourse.processing.org/u/bento)\
**Post date:** [January 31, 2020, 8:13pm UTC](https://discourse.processing.org/t/client-got-end-of-stream/17486/1 "2020-01-31T20:13:58Z")

</div>

I am trying to create a new processing net sketch and I always get this error

```auto
Client got end-of-stream.

```

I am using 2 sketches the client and the server

the client is

```auto
import processing.net.*;

Client cln;

void setup() {
  
 size(500,500); 
 cln = new Client(this,"ip adress",5204); 
  
}

void draw() {
 
}

```

and the server is basically

```auto
import processing.net.*;

Server serv;
Client player1;
Client player2;
Client player3;
Client player4;

void setup() {

  serv = new Server(this,5204);

  while (player1 == null) {
    
    player1 = serv.available();
    
  }
  while (player2 == null) {
    
   player2 = serv.available();
    
  }
  while (player3 == null) {
    
   player3 = serv.available();
    
  }
  while (player4 == null) {
    
   player4 = serv.available();
    
  }
  
}

```

the actual code is longer but here I am just showing the important part

I put a breakpoint in this line :

```auto
   player2 = serv.available();

```

so the debugger would be halted when player1 connects, instead of this I am getting this error

I would be very pleased if someone help me

---

<div class="post-metadata">

**Author:** ![bento](https://avatars.discourse-cdn.com/v4/letter/b/7bcc69/32.png) [@bento](https://discourse.processing.org/u/bento)\
**Post date:** [February 1, 2020, 2:16am UTC](https://discourse.processing.org/t/client-got-end-of-stream/17486/2 "2020-02-01T02:16:40Z")

</div>

Maybe the error was because I typed the wrong ip adress I tried again on a different computer and it ran fine
