how I can send udp packages to specific host in my network , if I change Udp.remoteIP( ) to 192,168,1,XX I have a mistake, only I want to send and not recive.
So, Do you know if there are any way to send a server on internet but not wiht its IP address remote? I want to send udp traffic to its domain name. For example:(it does not work , just an idea)
IPAddress remoteIP("www.testudp.com");
unsigned int remotePort = 8888;
// Start building up a packet to send to the remote host specific in ip and port
// Returns 1 if successful, 0 if there was a problem with the supplied IP address or port
virtual int beginPacket(IPAddress ip, uint16_t port);
// Start building up a packet to send to the remote host specific in host and port
// Returns 1 if successful, 0 if there was a problem resolving the hostname or port
virtual int beginPacket(const char *host, uint16_t port);