How to connect two Arduino directly via Ethernet cable
How to create connection between two Arduino directly via Ethernet without router/AP?
To create communication between two Arduino directly via Ethernet, we need to:
- Use two Ethernet shield
- Use a crossover Ethernet cable
- Config static IP for both Ethernet shield. Gateway of this shield is the IP address of other shield. For example
|Arduino #1 (Ethernet Shield)||Arduino #2 (Ethernet Shield)|
And then create a TCP connection between two Arduino: one Arduino acts as TCP server and the other acts as TCP client
For detail about TCP creation, please refer to communication between two Arduino via TCP
Please note: These are affiliate links. If you buy the components through these links, We may get a commission at no extra cost to you. We appreciate it.
The Best Arduino Starter Kit