How can I write destination address and port in buffer UDP?

Hi masters!

How can I write in the remote address buffer and remote port to the Udp?
I would like to send data to a remote card using the Udp protocol.
I wrote the address and remote port value but the compiler does not accept these write values.
Udp.beginPacket(Udp.remoteIP(0xC0, 0xA8,0x00,0xB1), Udp.remotePort(8888));
** Udp.write(0x35); **
** Udp.endPacket();**
Observing by the WireShark the value of the destination ip and destination port is not written. How can I write the addresses in this address buffer?

erro.jpg

udpimage.jpg

Never post text output as images!

Udp.remoteIP() and Udp.remotePort() don't accept parameters, so don't expect that to compile.

Try something like this:

IPAddress remoteHost(0xC0, 0xA8, 0x00, 0x81);
Udp.beginPacket(remoteHost, 8888);