Problem in connection with the Arduino Uno and Ethernet shield

i have uploaded the code of webserver and barometric pressure sensor examples on the arduino uno board that is attached to an ethernet shield but i cann't access my server from other command window or from the url.

the ping request return back timed out.

Your network settings are probably incorrect.

i tried different local IPs with same gateway and subnet in the code.

You must use an IP within the range of the local subnet.

What are the network settings on the PC you are using to attempt the connection? What are the network settings you are using on the Arduino? Are they connected to the same router?