WIZnet Ethernet HAT with Arduino mega2560
Reference : Required for W5100S
WIZnet Ethernet HAT - W5100S
Pin out
WIZnet Ethernet HAT

Arduino Mega 2560
Connection


Choose Board
Open Ethernet Example

Upload

Serial

Also, you can use a W5100S Ethernet Shield.