i cant see my ip adress on serial port monitor HELP ME PLEASEE!!!!!!!

i used dhcpadressprinter code given in arduino site, when i upload this, the serial port monitor does not show anything. How can i assign an ip adress for my ethernet shield? How can i learn ip adress of my ethernet shield? please help me im working on it for hours and get nothing!!

If error messages are not printed out then is the Arduino running at all with the Ethernet shield in place?

void setup() 
{
   Serial.begin(9600);
   // this check is only needed on the Leonardo:
   while (!Serial) 
   {
     ; // wait for serial port to connect. Needed for native USB port only
   }

   // start the Ethernet connection:

   Serial.println("I am Alive!");  //  < < < < < < < < < < 

   if (Ethernet.begin(mac) == 0) 
   {
     Serial.println("Failed to configure Ethernet using DHCP");
     for (;;)
     ;
   }
   // print your local IP address:
   printIPAddress();
}

this code gives error what should i do?

"the codes gives error..."

Be specific.

Installed OK; Using Windows 7; Acer Aspire 5534
Trying to run Blink program; Compiles OK, Upload -- a problem
Using UNO board. Sticker on top of processor says Download the new IDE from Arduino.org. What do I do??
JMK

@Lighty2
“Upload – a problem”
Another profound lack of specificity. What “error”, which? Which IDE presently?
If you aren’t a team-mate of xgizx then you are “hijacking”.

i changed the code and tried to gave an ip adress to my ethernet shield manually by using the information at cmd-ipconfig.

now my code includes this:

byte mac = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; //physical mac address
byte ip = { 192, 168, 1, 4}; // ip in lan
byte gateway = { 192, 168, 1, 1 }; // internet access via router
byte subnet = { 255, 255, 255, 0 };

but now i cant load the ip lan on the internet. im stuck.

Please be specific about the ethernet shield you are using. There are a few different types now, and they use different network ICs. A link to the one you are using would be helpful. Otherwise look at the IC and post the model you see there.

im using arduino ethernet shield 2 with poe module wiznet W5500

You must use the library provided by Wiznet.

It is set to W5500 by default.