Specifying Network Stream Endpoint URLs
- Updated2025-01-22
- 5 minute(s) read
Specifying Network Stream Endpoint URLs
LabVIEW identifies every network stream endpoint with a URL. When you specify a name for an endpoint with the writer name terminal of the Create Network Stream Writer Endpoint function or the reader name terminal of the Create Network Stream Reader Endpoint function, LabVIEW uses that name to create a URL with the following syntax:
ni.dex:// host_name : context_name / endpoint_name
The following table describes each component of this URL.
To create a valid network stream, use endpoint URLs to prompt a writer and a reader endpoint to connect to each other. Perform this task by wiring the URL of a remote endpoint to the reader url input on the Create Network Stream Writer Endpoint function or the writer url input on the Create Network Stream Reader Endpoint function.
The URL you must specify in these terminals varies depending on the network location of the remote endpoint. The following sections show examples of prompting endpoints to connect with each other.
![]() |
Note Endpoint URLs are not case sensitive. However, when you specify an endpoint URL, you must replace any reserved characters that you use with the corresponding escape codes to prevent parsing errors. |
Streaming to a Computer That Runs One Application Using Network Streams
When you connect to an endpoint on a remote computer that runs one application that uses network streams, as shown in the figure above, you must use a URL with the following syntax to prompt a connection between the endpoints:
// host_name / endpoint_name
Complete the following steps to use a URL with this syntax to prompt a connection between two endpoints.
- Create a reader endpoint on the remote computer with the Create Network Stream Reader Endpoint function, as shown in the following figure.
In the figure above, 10.0.0.62 is the host_name and Reader is the endpoint_name. Therefore, the URL of this endpoint is //10.0.0.62/Reader.Note LabVIEW searches for a valid interpretation of the host name in the following order: - Target name (as specified in the LabVIEW project)
- DNS name
- IP address
- Create a writer endpoint on the local host with the Create Network Stream Writer Endpoint function and specify the URL of the reader endpoint with the
reader url
terminal, as shown in the following figure.
Streaming to a Computer That Runs Multiple Applications Using Network Streams
When you connect to an endpoint on a remote computer that runs multiple applications that use network streams, as shown in the figure above, you must use a URL with the following syntax to prompt a connection between the endpoints:
// host_name : context_name / endpoint_name
Complete the following steps to use a URL with this syntax to prompt a connection between two endpoints.
- Create a reader endpoint on the remote computer with the Create Network Stream Reader Endpoint function, as shown in the following figure.
When you create an endpoint on a computer that runs multiple applications that use network streams, you must assign a URL that includes the host_name, a context_name, and an endpoint_name, as shown in the figure above. Assigning a URL instead of a name in this instance ensures that multiple applications on one computer do not use the same context, which would prevent two endpoints from connecting. - Create a writer endpoint on the local host with the Create Network Stream Writer Endpoint function and specify the URL of the reader endpoint with the
reader url
terminal, as shown in the following figure.
Streaming to an Application on the Local Host
When you connect to an endpoint within another application on the local host, as shown in the figure above, you must use a URL with the following syntax to prompt a connection between the endpoints:
// localhost : context_name / endpoint_name
Complete the following steps to use a URL with this syntax to prompt a connection between two endpoints.
- Create a reader endpoint within one application with the Create Network Stream Reader Endpoint function, as shown in the following figure.
- Create a writer endpoint within the other application with the Create Network Stream Writer Endpoint function and specify the URL of the reader endpoint with the
reader url
terminal, as shown in the following figure.
Note Because the local host runs two applications that use network streams, you must specify a URL instead of a name for each endpoint.