2 w5100 connect to each other problem

I'm trying to connect 2 arduino with 2 w5100. I've simply modify the ip and mac of the example sketch and upload it to the arduino. I can success with the arduino acting as client/sever connect with computer but once I want to connect them to each other. I got failed form the client arduino. How can I connect them 2 board or I have to add a router rather the connect them directly? Sorry for my pool English.

I have to add a router rather the connect them directly?

Yes, you do.

How can I connect them 2 board or I have to add a router rather the connect them directly?

What have you tried for the direct connection? Are you using for the gateway value?

wan40657819: I have to add a router rather the connect them directly?

I used to think you needed a router but I was wrong: https://forum.arduino.cc/index.php?topic=351427.0