See my example
in this recent thread.
The remote port number is determined by the listening port of the server. You need to find out. (Many port numbers are assigned by
IANA to certain services. For example, if this is a syslog server, you would need to send to remote port 514/UDP.)
The remote host address is the IP address expressed as U32 number. USe String-to-IP to translate a hostname (e.g. ni.com) or dotted-decimal IP address (e.g. 192.168.100.100) to the correct format.
In many cases, the local port is irrelevant. Often it is easiest to simply
wire a zero to it. In this case, the OS will automatically choose a free ephemeral port. (If you choose a specific local port, there is always a finite chance that this particular port is already in use, giving you an error.).