Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
2 ratings:
 5 out of 5     Rate this Document

Static Assignment of DataSocket Client Ports

Primary Software: Other NI Software>>DataSocket
Primary Software Version: 4.0
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem:
I am trying to use DataSocket to communicate through a firewall.  Before doing so, however, I must open a port through my firewall to allow for the communication.  Is there a way to make the port number that is used by DataSocket clients static or is there a limited range within which the ports will be assigned?

Solution:
Unlike the DataSocket server, which always uses port 3015, there is no way to statically assign a port number to be used by your DataSocket clients.  This means that DataSocket will randomly assign a port number for each incident.  Similarly, the entire range of ports (1024 up to 65536) is utilized by DataSocket, so there is not a limited range in which it is confined.

Related Links:
KnowledgeBase 2GD9CL6Q: What Ports Do I Need to Open on My Firewall for National Instruments Software Products?
KnowledgeBase 2XQBKHQJ: Error 63 When Using DataSocket



Attachments:





Report Date: 02/07/2002
Last Updated: 03/20/2007
Document ID: 2I6FKFNK

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit