Does the network you are connecting to have a dhcp server on it, usually routers are set up to be one. If not you must assign a static ip to your arduino.
this can be done like so using the Ethernet libray
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
IPAddress ip(192,168,0,177); // make sure this is in the subnet of your network
EthernetClient client;
Ethernet.begin(mac, ip);
it looks like you just need to print the ip not get every byte. From Ethernet.localIp()
documentation
// print your local IP address:
Serial.println(Ethernet.localIP());
Also can you try the webServer example. And then see if you can navigate to the ip that gets printed out in your browser (hopefully not 0.0.0.0)