13 Replies Latest reply on Mar 14, 2016 5:42 AM by FGT

    Galileo causing problem with arduino ethernet library


      I have been trying to use gen2 to send UDp packets to the server using arduino ethernet library.

      Firstly, the Ethernet.LocalIP() function returned as the address even though I have entered the ,mac address correctly.

      Here's the code:


      #include <SPI.h>
      #include <Ethernet.h>
      // Enter a MAC address for your controller below.
      // Newer Ethernet shields have a MAC address printed on a sticker on the shield
      byte mac[] = {0x98,0x4F,0xEE,0x02,0x0A,0x46};
      // 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;
      void setup() {
        // start the serial library:
        // start the Ethernet connection:
        if (Ethernet.begin(mac) == 0) {
          Serial.println("Failed to configure Ethernet using DHCP");
          // no point in carrying on, so do nothing forevermore:
        // print your local IP address:
      void loop() {


      Any suggestions or inputs are appreciated