Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

Using DataSocket in VisualBasic across a network

I have run the data socket demo programs that came with component works on one machine and everything works fine. when I run the reader on another machine attached to the network I can't get the system to work. How do I tell the reader where the the data socket server is located. The data socket server has this address listed in the statistics Rocmiwe01223.asd.etn.com
Dave Smith
0 Kudos
Message 1 of 2
(3,431 Views)
The DataSocket session is located on the computer that it was posted to. If you opened an example that came with ComponentWorks then it is probably being posted to dstp://localhost/"data session name". Localhost means the computer that the program is on. You could also replace localhost with the computer's IP address (eg. 184.130.48.1) or with its network name (eg."Neptune"). To find out what IP address or network name your computer has, ask your Local Network Administrator. Subsequently, in order to read from a posted DataSocket session, you must input the same ABSOLUTE address for the session that it was written to.
For example, if I am posting a session to my local computer I could post the session to : "dstp://localhost/session1"
And, if I
want to read that data from that session from another lab and I knew that localhost had a Network ID of "Venus" then I could read the DataSocket session by inputing : "dstp://Venus/session1".

Also see the two links below.
Joji
0 Kudos
Message 2 of 2
(3,431 Views)