LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

access from the network and/or the internet via datasocket

Hi

How to configure the datasocket to be able to access from another computer via the network and the internet

I have 2 VI and want to exchange data in the network or via internet
If I use dstp:\\localhost\myapp..
I am able to access the other Vi only if it is on tje same computer

What url I have to use or what I have to do...
Configure a new host??
????

Thanks


0 Kudos
Message 1 of 3
(2,662 Views)
Hi Maxx,

in the URL you must change the computer name from localhost to the name the computer is know in the network.

If cannot reach this computer with the dstp protocoll a firewall, router or switch maybe located between them. You must allow packets for port 3015 to go through the network. This port is used by the dstp protocoll.

Be sure to have set the right permissions in the datasocket server manager for the groups and hosts.

Waldemar
Waldemar

Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions
0 Kudos
Message 2 of 3
(2,662 Views)
Hi Maxx

There are different things to check:
1. Be sure to give the correct rights in the data socket server manager. The easiest way is to set the "DefaultReaders", Default Writers" and "Creators" to EVERYHOST. Of course you can change that afterwards.
2. Check that the DS server is running.
3. The DSTP Url looks like this:
dstp://machine where the datasocket server is running/data item

So, if you've to PC's one is named "TEST1" and the second "TEST2" and the DATA SOCKET server is running on machine named "TEST2" and the ITEM you write/read to is WAVE, then your URL should look on both PC's like this:
dstp://TEST2/wave

Insted of the machine name, you can use the IP adress too, e.g: dstp://145.123.167.123/wave

Hope this helps,
Luca
Regards,
Luca
0 Kudos
Message 3 of 3
(2,662 Views)