Problem with UDP packets

In 'C', literal values can be characters, or strings, or decimal numbers, or floating point numbers.

192.168.1.10 is not any of those.

An IPv4 address is a 32-bit number which is often expressed as a string in dotted decimal format (192.168.1.1). But this is not a format that your compiler will understand.

You need to provide the address in the format needed by the API of the library you're using. It looks to me as if the library is expecting to get a long int, but you would need to look at the API to know for sure. Anyway, you don't need to figure it out and you don't need me to figure it out. Just look at the examples for the UDP library and they will show you how to use it.

And no, I'm not writing the code for you, no matter how hard it is for you and how easy for me. If I write it for you, it achieves nothing. Look at the examples; they show you what to do. If you can't follow the examples, put the problem down and go do something easier. Nobody expects you to tackle the hardest problems right away, and if you aren't ready yet then get some more practice in and then come back to the problem.