IP Adress Issue With Ethernet Shield V2

I've got an Uno with an Ethernet Shield. I've tried running some of the example sketches, but seem to be having some kind of major malfunction. When using the WebServer example while setting the IP adress to "192.168.1.177", I get back "0.35.35.35" from the serial monitor. When using the DhcpAdressPrinter, the sketch seems to hang at "if (Ethernet.begin(mac) == 0)". I've scoured the internet and tried several other sketches over the past few days and have had zero luck getting anything to work. I'm not able to ping the arduino from my PC, nor is it visible in my attached devices in my router configuration.

When using the WebServer example while setting the IP adress to "192.168.1.177", I get back "0.35.35.35" from the serial monitor.

The WebServer example does not get data from the Serial Monitor application. It sends data TO the serial port, where the Serial Monitor app might be listening.

Whether you wrote the code, or not, you still need to POST YOUR CODE.

If you think the Arduino's IP address is 192.168.1.177, but the router does not, then what you think does not matter. The router needs to assign an IP address for the Arduino to use. The Arduino needs to use the address assigned by the router. Until then, you are wasting your time.

I apologize if I didn’t make it clear. In thiscase, the sketch is setting the IP address, not the DHCP functionality in the router, although I have attempted that as well to no avail. The router does not see the device attached at any address. With this code, the serial monitor responds “IP is at 0.35.35.35”.

/*
#include <SPI.h>
#include <Ethernet.h>

// Enter a MAC address and IP address for your controller below.
// The IP address will be dependent on your local network:
byte mac = {
0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED
};
IPAddress ip(192, 168, 1, 177);

// Initialize the Ethernet server library
// with the IP address and port you want to use
// (port 80 is default for HTTP):
EthernetServer server(80);

void setup() {
// Open serial communications and wait for port to open:
Serial.begin(9600);
// while (!Serial) {
; // wait for serial port to connect. Needed for native USB port only
// }

// start the Ethernet connection and the server:
Ethernet.begin(mac, ip);
Serial.print("IP is at ");
Serial.println(Ethernet.localIP());
}

void loop() {

}

In thiscase, the sketch is setting the IP address, not the DHCP functionality in the router

If the router doesn’t know that the Arduino is at IP xxx.yyy.zzz.aaa, then packets addressed to xxx.yyy.zzz.aaa will ricochet off the rim of the bit bucket.

The router needs to KNOW that the Arduino is at IP address xxx.yyy.zzz.aaa, regardless of HOW it knows that.