LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using Datasocket over internet

Hi,

 

My requirement is to transfer data between two LV apps running on two different PCs over the internet. I am trying to use Datasocket for this purpose. I am able to browse and select the variable i created over a local network.

 

Please help me out to do the same over the internet. I have a static IP for my internet connection, and my PC sits behind a router. When i give the my static IP, the datasocket browser in the control properties lists that some data socket server is available, but when i expand it it says there are no items present in it.

 

I have opened a port on my router that directs communication to my PC. So i give something like "122.122.122.122:1000" to browse for datasockets.

 

Thanks in advance

0 Kudos
Message 1 of 7
(2,547 Views)

Hi,

Did you mean, you're using "shared variables" with datasocket?

 

Here's a small checklist in case if you have missed any of it - 

 

 

  • Did you select it as "Network-published" in the properties of the shared variable (or data-binding)?
  • Did you select "Enable Aliasing" in the properties of the variable?
  • Marking "Enable Aliasing" checked, you will have possibility to bind the the variable to "psp-url" or to a project variable. Select psp-url.

 

 

I hope this helps. Please give some more information, or post your vi if possible.

 

Regards, 

 

Vaibhav
0 Kudos
Message 2 of 7
(2,522 Views)

-Hi,

I have the same trouble. I can connect over the LAN, but I can't connect over Internet, I'm not using shared variables (I don't really know what is it) but I like to know if this problem have been solved.

The DS server is in a machine with static IP assigned inside a University. Inside the university I can access, outside I can't.

Do you have any solutions?

 

Thank you. 

0 Kudos
Message 3 of 7
(2,393 Views)

That requires port forwarding in your firewall, or for more security use a VPN tunnel so the data is encrypted over the 'net.

 

For the university guy Smiley Happy - talk with your IT admins, and prepare for a fight :womanmad:

 

 

0 Kudos
Message 4 of 7
(2,387 Views)

Thanks for replying,

 

Then I'll have a talk with him/her. And, just for curiosity, have you used datasocket over internet succesfully? Any suggestion? Could you post a VI or the default examples work well?

0 Kudos
Message 5 of 7
(2,383 Views)

Nitrox - where did you put the port forwarding?

 

does it work on the LAN? if that works its something that gets blocked, like transferring information "the opposite flow"?

0 Kudos
Message 6 of 7
(2,382 Views)

I dont have any small examples, but datasocket works with a lot of things 🙂 its functions are quite versitile (excuse me for my english). I havent looked at any examples, but if they work on the LAN then getting it over the internet should be no problem if all the firewalls/VPN connections are OK.

 

I would recommend VPN for controlling applications of any industrial systems. Often an own "process" LAN is used for this where the application is used. Getting access to this from the internett is difficult sometimes. Same as your university (thats why I says prepare for a fight - if they know their job they will deny you when using port forwarding) There are a lot of people out there scanning for security breaches.

0 Kudos
Message 7 of 7
(2,379 Views)