UDP packets not sent at the correct IP

Hallo,

thanks for trying to help.

Project: Sending some UDP packets to a certain port and Address.

Problem: The Packets are not sent to the address, i assigned them to. Moreover, they not seem to be constant and the packet size changes.

Code:

#include <SPI.h>        
#include <Ethernet.h>
#include <EthernetUdp.h>


byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
IPAddress ip(192,168,137,5);
IPAddress udpip(255,255,255,255);
unsigned int localPort = 12345;      // local port to listen on
unsigned int remoteip = 25001;

// An EthernetUDP instance to let us send and receive packets over UDP
EthernetUDP Udp;

void setup() {
  // start the Ethernet and UDP:
  Ethernet.begin(mac,ip);
  Udp.begin(localPort);
}

void loop() {
  Udp.beginPacket(udpip, remoteip);
    Udp.write("hello");
    Udp.endPacket();
}

However, changing:

   Udp.beginPacket('255.255.255.255', remoteip);

I receice beautiful, very constant messages but still at a wrong address.

Hardware: Arduino Uno Rev. 3 , Ethernet Shield W550, Windows 8.1

(deleted)

Yup,

Ok. I solved it. I was looking at the wrong connection in Wiresharks.

Thanks

(deleted)

Thread locked.