Error -1967390704 When Using Network Streams

Updated Dec 18, 2023

Reported In


  • LabVIEW

Issue Details

When calling Create Network Stream Writer Endpoint, I get following error:

Error -1967390704: Socket has been disconnected by its peer.

If I run the VI multiple times, I sometimes also get following error:

Error -314350: Another application is already streaming data to an endpoint in the context you specified. If you specified a context name in the reader name or writer name terminal of the endpoint, you must specify an unused context name. If you did not specify a context name, you must specify an unused context name by entering an endpoint URL in the reader name or writer name terminal.


The cause for this error is, that the NI PSP Service Locator is not running.
  1. Open the windows services by searching for services.msc in the start menu.
  2. Find NI PSP Service Locator in the list of windows services, right-click and select Properties
  3. Select Automatic for Startup type, click Start, then click OK.
  4. Restart your PC.

To automatically restart NI PSP Service Locator without restarting computer you can go to Recovery tab and right click on Recovery drop-down menu and select Restart the Service. You can change the time until restart in Restart service after. Default value is one minute.  

Additional Information

The NI PSP Service Locator locates servers at the request of network variable clients and other proprietary NI network protocols. If this service is stopped or disabled, network variables and network streams will stop working.