ethernet+2 arduino

Both have ethernet shield. So I think I need 2 IP, gateway, subnet, 2 MAC, my router public IP and I have to open a port in my router.

What would be the reading code for the digital pin?

client.read(digitalRead(3));

I know its bad, what I have to change?

thanks!