Hi guys not sure if this is the place for my question but ill just ask and move it later on if its wrong.
So i have a question, how do i find the mac address and ip address for the Arduino Ethernet Shield?
Ive looked around the internet about both the mac address and ip address for the arduino ethernet shield and this is what i have come up with.
Firstly, for the mac address what ive understand is that its dependent on the Ethernet shield, if its the newer one i need to refer to a sticker, if not i can randomly assign one to the ethernet shield. For mine(it says Ethernet R3 on the back) i think i can assign a random one. So can i just use a website that can generate a random unique mac address? Say something like this website > Link: MAC Address Generator
And then go byte mac[] = { 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA }; with AA being the every 2 digit of the mac address generated from that website.
And then secondly, about the Arduino Board IP address what ive understood so far is i can use the DHCP Address Printer sketch in the examples tab of the Arduino IDE. I did an attempt using that sketch but it didnt work as nothing appeared on the serial monitor where the IP adress should have appeared. I think its because of this as shown below as Im not sure how to Initialize it properly.
// Initialize the Ethernet client library
// with the IP address and port of the server
// that you want to connect to (port 80 is default for HTTP):
EthernetClient client;
Many thanks in advance!