First, make sure that you have the correct IP address specified, and that you can access this location on your network. You also need to have the privileges set appropriately in the DataSocket Server Manager. To update the DataSocket settings, you must close out of the server completely and then start it again when the settings are correct. The settings will not be propagated if you do not shutdown the server and restart it.
To change the DataSocket Server Manager privileges, perform the following steps:
- Shutdown DataSocket Server by going to Start » Programs » National Instruments » DataSocket » DataSocket Server. From the Server menu, select Shutdown DataSocket Server.
Note: Closing or minimizing the DataSocket Server only hides it.
- To reset the permissions, go to Start » Programs » National Instruments » DataSocket » DataSocket Server Manager.
- Click on DefaultWriters.
- Click Add Host.
- Type in the <IP Address> (or name) of the computer that is writing to this DataSocket Server in the lower right-hand corner of the window.
Note: Alternatively, you can click the > button and choose everyhost to give permission to everyone.
- Repeat steps 4 though 6 for the Creators group.
- Save the current permissions by going to the Settings menu, and selecting Save Settings Now.
- Close the DataSocket Server Manager.
- Re-start the Data Socket Server by going to Start » Programs » National Instruments » DataSocket » DataSocket Server.
If this error occurs while accessing an NI OPC Server, it can sometimes relate to the DCOM permissions of the server. In cases like this, follow the steps outlined by the OPC Foundation to correctly configure permissions for the NI OPC Server DCOM item. In rare cases, the NI OPC Server can be configured as a system service, which can cause further permissions issues. If this is the case, view Cannot Connect to NI OPC Server after Running It as a Service