Problem with UDP packets

There is no such thing as an IP Address Constant. You have to use a function to format the four parts of the address as a single 32-bit number before you can pass it to a function. See any of the Ethernet examples for examples.