XNET UDP Socket Open VI
- Updated2025-10-07
- 3 minute(s) read
Opens a UDP socket to send a datagram to a single receiver on the port you specify. If you want to send a single datagram to multiple receivers in parallel, use the XNET UDP Multicast Open node.

Inputs/Outputs
stack
—
stack is the XNET IP Stack in which the new socket is opened.
local port
—
local port is the port number where you want to listen for a connection. By default (0), this VI dynamically chooses an available UDP port to listen for connections on. The following table lists valid port numbers as defined by the Internet Assigned Numbers Authority (IANA).
error in
—
The error in cluster can accept error information wired from VIs previously called. Use this information to decide if any functionality should be bypassed in the event of errors from other VIs. The pop-up option Explain Error (or Explain Warning) gives more information about the error displayed.
local interface
—
local interface identifies a specific virtual interface in the IP Stack on which to bind the socket. The virtual interface is identified using one of the following (as returned from XNET IP Stack Get Info.vi):
This input is optional. If local interface is empty (default), the socket is bound to any virtual interface in the IP stack.
socket
—
socket is a network connection refnum that uniquely identifies the connection. Use this value to refer to this connection in subsequent VI calls.
actual local port
—
local port is the port number where you want to listen for a connection. By default (0), this VI dynamically chooses an available UDP port to listen for connections on. The following table lists valid port numbers as defined by the Internet Assigned Numbers Authority (IANA).
error out
—
The error out cluster passes error or warning information out of a VI to be used by other VIs. The pop-up option Explain Error (or Explain Warning) gives more information about the error displayed. |
stack
—
local port
—
error in
—
local interface
—
socket
—
actual local port
—
error out
—