I found another sketch.
A simple burglar Alarm: Ethernet shield connection - Arduino: projects Why don't have to use it IPAddress, IPAddress gateway, and IPAddress subnet ? And what is the deficiency of this example? Why is it much easier than your example? Ex cuse me for my questions! I would like to understand the differences.