client.read(digitalRead(3));
I know its bad, what I have to change?
Everything you need to make it compile. The digitalRead() will, presumably, be done on the Arduino that acts as a server, so the data is sent to clients using client.print(), not client.read(). The client.read() method takes no arguments, and is used on the client to read what the server sent.